/* ============================================================
   Сайт «СозидАй» — каркасные стили.
   Реальный дизайн будет подключён из Open Design позже.
   ============================================================ */

:root {
    --ivory: #F7F1E8;
    --beige: #EDE3D4;
    --terra: #C77D4A;
    --bordo: #7A2E2E;
    --text: #3D2C1E;
    --line: #D8C8B3;
    --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--ivory);
    line-height: 1.6;
}
a { color: var(--terra); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Кнопки */
.btn {
    display: inline-block; padding: 12px 24px; border-radius: var(--radius);
    font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: .2s;
    text-align: center;
}
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--bordo); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-block { width: 100%; }

/* Шапка */
.site-header { background: rgba(247,241,232,.95); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); }
.logo-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--terra); }

/* Hero */
.hero { min-height: 70vh; display: flex; align-items: center; background-size: cover; background-position: center; color: #fff; text-align: center; }
.hero-inner { padding: 60px 20px; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); margin-bottom: 16px; font-family: 'Playfair Display', Georgia, serif; }
.hero-sub { font-size: 18px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-badge { display: inline-block; padding: 8px 18px; background: rgba(0,0,0,.3); border-radius: 30px; font-size: 14px; }

/* Секции */
.section { padding: 64px 0; }
.section-beige { background: var(--beige); }
.section-title { text-align: center; font-size: 32px; margin-bottom: 40px; font-family: 'Playfair Display', Georgia, serif; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.info-card h3 { margin-bottom: 10px; }
.info-card ul { list-style: none; }
.info-card li { padding: 4px 0; }

/* Мастера */
.grid-masters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.master-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: .2s; }
.master-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.master-photo { height: 320px; background-size: cover; background-position: center; }
.master-info { padding: 20px; }
.master-info h3 { font-size: 22px; margin-bottom: 6px; }
.master-spec { color: var(--terra); margin-bottom: 12px; }
.master-card .link { color: var(--terra); font-weight: 600; }

/* Галерея */
.gallery-masonry { columns: 3; column-gap: 16px; }
.gallery-item { height: 240px; background-size: cover; background-position: center; border-radius: 12px; margin-bottom: 16px; break-inside: avoid; }

/* Направления */
.grid-directions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.direction-card { background: #fff; padding: 20px; border-radius: 12px; text-align: center; box-shadow: 0 1px 6px rgba(0,0,0,.05); }

/* Контакты */
.contacts { text-align: center; }
.contacts p { margin: 8px 0; }

/* Страница мастера */
.breadcrumbs { padding: 20px 0; color: var(--terra); font-size: 14px; }
.breadcrumbs a { color: var(--terra); }
.master-head { display: grid; grid-template-columns: 400px 1fr; gap: 40px; align-items: start; }
.master-portrait-big { height: 400px; background-size: cover; background-position: center; border-radius: var(--radius); }
.master-meta h1 { font-size: 36px; margin: 16px 0; font-family: 'Playfair Display', Georgia, serif; }
.master-meta .badge { display: inline-block; background: var(--beige); padding: 6px 14px; border-radius: 20px; color: var(--terra); font-weight: 500; }
.bio-html, .program-html { font-size: 17px; }
.bio-html p, .program-html p, .program-html li { margin: 8px 0; }
.master-phone { font-size: 18px; margin: 20px 0; }
.program-html h2 { font-size: 24px; margin: 20px 0 12px; }

/* Форма заявки */
.section-cta { background: var(--bordo); color: #fff; }
.section-cta .section-title { color: #fff; }
.app-form { max-width: 600px; margin: 0 auto; background: rgba(255,255,255,.1); padding: 32px; border-radius: var(--radius); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-row .hint { font-weight: 400; opacity: .7; font-size: 13px; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px;
    background: rgba(255,255,255,.95); color: var(--text); font-size: 16px;
}
.form-status { margin-top: 16px; font-weight: 600; min-height: 24px; }
.form-status.success { color: #b6f0c2; }
.form-status.error { color: #ffb3b3; }

/* Трекинг */
.track-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--beige); padding: 20px; }
.track-card { background: #fff; padding: 40px; border-radius: var(--radius); max-width: 560px; width: 100%; box-shadow: 0 4px 20px rgba(0,0,0,.1); text-align: center; }
.track-logo img { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px; }
.track-card h1 { margin-bottom: 16px; }
.track-status { padding: 8px 16px; border-radius: 20px; display: inline-block; margin-bottom: 20px; background: var(--beige); font-weight: 600; }
.track-details { text-align: left; margin-bottom: 20px; }
.track-details dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; }
.track-details dt { color: var(--terra); font-weight: 500; }
.track-card .btn { margin-top: 12px; }

/* Адаптив */
@media (max-width: 768px) {
    .nav { display: none; }
    .grid-3, .grid-masters, .grid-directions { grid-template-columns: 1fr; }
    .gallery-masonry { columns: 1; }
    .master-head { grid-template-columns: 1fr; }
    .master-portrait-big { height: 280px; }
}
