/* ============================================================
   LUMEN ATELIER — Form in Motion
   Сайт Татьяны Лариной · промо услуг
   ============================================================ */

:root {
  /* Colors */
  --c-primary:        #E6DDCD;
  --c-secondary:      #556349;
  --c-tertiary:       #B8A07C;
  --c-neutral:        #2A2620;
  --c-background:     #E6DDCD;
  --c-surface:        #5C6B50;
  --c-text-primary:   #2A2620;
  --c-text-secondary: #6E6457;
  --c-border:         #B8A07C;
  --c-border-soft:    #D8CDB9;
  --c-btn-bg:         #F4EFE6;

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Archivo", "Inter", sans-serif;
  --font-script: "Playfair Display", Georgia, serif;
  --c-gold: #A2966F;
  --c-gold-deep: #7E6A38;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 20px;
  --s-5: 24px; --s-6: 28px; --s-7: 32px;
  --section-pad: 60px;

  --r-card: 20px;
  --r-shell: 16px;
  --r-full: 9999px;

  --glass-bg: rgba(244, 239, 230, 0.55);
  --glass-blur: blur(4px);
  --shadow-soft: rgba(0,0,0,0.05) 0 1px 2px 0;
  --shadow-card: rgba(0,0,0,0.06) 0 22.3px 17.9px 0, rgba(0,0,0,0.07) 0 41.8px 33.4px 0;
  --shell-gradient: linear-gradient(to right bottom, rgb(111,125,95), rgb(55,54,47));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 24px;
  color: var(--c-text-primary);
  background: var(--c-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(118deg, rgba(42,38,32,0.022) 0 1px, transparent 1px 9px),
    radial-gradient(60% 50% at 80% 0%,  rgba(92,107,80,0.18), transparent 70%),
    radial-gradient(50% 45% at 0% 100%, rgba(184,160,124,0.22), transparent 70%),
    var(--c-background);
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--s-5); }
section { padding: var(--section-pad) 0; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 12px; font-weight: 500; line-height: 16px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-secondary);
}
h1.display {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600; line-height: 1.0; letter-spacing: -0.025em; color: var(--c-text-primary);
}
h2.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600; line-height: 1.05; letter-spacing: -0.02em;
}
.lead { font-size: 18px; line-height: 28px; color: var(--c-text-primary); max-width: 60ch; }
.muted { color: var(--c-text-secondary); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 12px; font-weight: 500; line-height: 16px;
  background: #F4EFE6; color: #2A2620;
  border: 1px solid #D8CDB9; border-radius: var(--r-full); padding: 10px 24px;
  cursor: pointer; text-decoration: none; transition: background .15s ease;
}
.btn-primary:hover { background: #fff; }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 20px;
  color: #2A2620; text-decoration: none; background: none; border: 0;
  transition: color .15s ease;
}
.btn-link:hover { color: var(--c-secondary); }

/* ---------- Glass surface with gradient shell ---------- */
.shell { background: var(--shell-gradient); padding: 1px; border-radius: var(--r-shell); box-shadow: var(--shadow-card); }
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-radius: calc(var(--r-shell) - 1px); border: 1px solid var(--c-border-soft); padding: var(--s-6);
}

/* ---------- Header / nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(230,221,205,0.7);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--c-border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--s-5); max-width: 1100px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .mark { width: 40px; height: 40px; border-radius: var(--r-full); background: var(--c-neutral); flex: none; }
.brand .word { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.01em; font-size: 20px; text-transform: uppercase; color: var(--c-neutral); }
.brand .word .a { color: var(--c-gold-deep); }
.nav-links { display: flex; gap: var(--s-5); align-items: center; }
.nav-links a:not(.btn-primary) { color: var(--c-text-primary); text-decoration: none; font-size: 14px; font-weight: 400; }
.nav-links a:not(.btn-primary):hover { color: var(--c-secondary); }

.btn-dark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1;
  background: #33352B; color: #F4EFE6;
  border: 0; border-radius: var(--r-full); padding: 16px 30px; text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(51,53,43,.55); transition: background .15s ease, transform .15s ease;
}
.btn-dark:hover { background: var(--c-neutral); transform: translateY(-1px); }

@media (max-width: 720px) { .nav-links a:not(.btn-primary) { display: none; } }

/* ---------- Hero (фото слева, текст справа) ---------- */
.hero { padding: 44px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 0.82fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-mark { margin-bottom: var(--s-5); }
.hero-mark .line { display: block; width: 56px; height: 1px; background: var(--c-gold); }
.hero-name { line-height: 0.94; margin-bottom: var(--s-3); }
.hero-name .heavy { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(46px, 6.6vw, 92px); color: var(--c-neutral); }
.hero-role { font-family: var(--font-script); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); color: var(--c-gold-deep); line-height: 1.2; margin-bottom: var(--s-6); }
.hero .lead { margin-bottom: var(--s-6); font-size: 20px; line-height: 31px; }
.hero-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin-bottom: var(--s-6); }
.hero-facts span { font-size: 15px; color: var(--c-text-secondary); padding: 0 18px; border-right: 1px solid var(--c-border); }
.hero-facts span:first-child { padding-left: 0; }
.hero-facts span:last-child { border-right: 0; }
.hero-facts b { color: var(--c-text-primary); font-weight: 600; }
.hero-cta { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; }
.photo-frame { max-width: 460px; }

/* Photo */
.photo-frame { width: 100%; max-width: 420px; }
.photo-frame .shell { padding: 1px; }
.photo-frame img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; border-radius: calc(var(--r-shell) - 1px); }
.photo-ph {
  width: 100%; aspect-ratio: 4/5; border-radius: calc(var(--r-shell) - 1px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: repeating-linear-gradient(135deg, rgba(42,38,32,.05) 0 2px, transparent 2px 15px), linear-gradient(165deg, #D9CDB6, #C3B295);
  color: #6B6149;
}
.photo-ph .ring { width: 58px; height: 58px; border-radius: var(--r-full); border: 1.5px dashed rgba(42,38,32,.45); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 300; }
.photo-ph .ph-t { font-size: 12.5px; letter-spacing: .03em; }
.photo-badge {
  position: absolute; top: 18px; left: 18px; background: rgba(42,38,32,.62); color: #F4EFE6;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; border-radius: var(--r-full); padding: 8px 16px; white-space: nowrap;
}
.photo-frame { position: relative; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .photo-frame { order: 2; margin: 0 auto; }
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--c-border-soft); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--c-border-soft);
}
.stat { background: var(--glass-bg); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); padding: var(--s-6) var(--s-5); }
.stat .num { font-size: clamp(26px, 2.8vw, 36px); font-weight: 600; letter-spacing: -0.02em; color: var(--c-text-primary); line-height: 1.1; }
.stat .lbl { margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--c-text-secondary); }
@media (max-width: 620px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats-grid { grid-template-columns: 1fr; } }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-top: var(--s-7); }
.service-card { display: flex; flex-direction: column; height: 100%; min-height: 384px; }
.service-card .idx { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--c-secondary); margin-bottom: var(--s-3); }
.service-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: var(--s-3); }
.service-card .txt-short,
.service-card .txt-full { font-size: 14.5px; line-height: 22px; color: var(--c-text-secondary); }
.service-card .txt-full { display: none; }
.service-card:hover .txt-short { display: none; }
.service-card:hover .txt-full { display: block; }
@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .service-card { min-height: 280px; } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } .service-card { min-height: 0; } }
@media (hover: none) {
  .service-card .txt-short { display: none; }
  .service-card .txt-full { display: block; }
}

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
.case-card { display: flex; flex-direction: column; height: 100%; }
.case-card .case-tag { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-secondary); margin-bottom: var(--s-3); }
.case-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: var(--s-4); }
.case-metrics { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-bottom: var(--s-4); }
.case-metrics .m .mv { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--c-text-primary); }
.case-metrics .m .ml { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--c-text-secondary); max-width: 16ch; }
.case-card .case-desc { font-size: 15px; line-height: 23px; color: var(--c-text-primary); margin-bottom: var(--s-4); }
.case-card .case-link { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--c-secondary); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease; align-self: flex-start; }
.case-card .case-link:hover { border-color: var(--c-secondary); }
.cases-more { margin-top: var(--s-6); font-size: 16px; color: var(--c-text-secondary); }
@media (max-width: 760px) { .cases-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-7); align-items: start; }
.about-grid p { margin-bottom: var(--s-4); font-size: 17px; line-height: 27px; }
.about-grid p:last-child { margin-bottom: 0; }
.about-aside h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-secondary); margin-bottom: var(--s-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.chip { font-size: 13px; padding: 6px 12px; border-radius: var(--r-full); border: 1px solid var(--c-border); color: var(--c-text-primary); background: rgba(244,239,230,0.4); }
.short-panel { padding: var(--s-4) var(--s-6); }
.short-panel .sp { padding: 14px 0; border-bottom: 1px solid var(--c-border-soft); font-size: 15px; line-height: 22px; color: var(--c-text-primary); }
.short-panel .sp:last-child { border-bottom: 0; }
.short-panel .sp b { font-weight: 600; color: var(--c-secondary); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-7); align-items: center; }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--c-text-secondary); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--c-text-primary);
  background: rgba(255,255,255,0.5); border: 1px solid var(--c-border); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--c-secondary); }
.field textarea { min-height: 110px; resize: vertical; }
.contact-side a { color: var(--c-secondary); text-decoration: none; font-weight: 500; }
.contact-side a:hover { text-decoration: underline; }
.contact-side .row { margin-bottom: var(--s-4); }
.contact-side .row b { display:block; font-size:12px; text-transform:uppercase; letter-spacing:0.06em; color:var(--c-text-secondary); margin-bottom:4px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: var(--s-4); font-size: 13px; line-height: 18px; color: var(--c-text-secondary); cursor: pointer; }
.consent input { margin-top: 2px; flex: none; accent-color: var(--c-secondary); }
.consent a { color: var(--c-secondary); }
.form-ok { display: none; font-size: 16px; line-height: 24px; color: var(--c-text-primary); padding: var(--s-5) 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Статьи: список ---------- */
.page-head { padding: 64px 0 8px; }
.articles-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); margin-top: var(--s-6); }
.article-card { display: flex; flex-direction: column; height: 100%; }
.article-card .a-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-secondary); margin-bottom: var(--s-3); }
.article-card h2 { font-size: 23px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: var(--s-3); }
.article-card h2 a { color: var(--c-text-primary); text-decoration: none; }
.article-card h2 a:hover { color: var(--c-secondary); }
.article-card .a-excerpt { font-size: 15.5px; line-height: 24px; color: var(--c-text-secondary); margin-bottom: var(--s-4); }
.article-card .a-more { margin-top: auto; font-size: 14px; font-weight: 500; color: var(--c-secondary); text-decoration: none; align-self: flex-start; }
.article-card .a-more:hover { text-decoration: underline; }
@media (max-width: 760px) { .articles-list { grid-template-columns: 1fr; } }

/* ---------- Статья: страница ---------- */
.breadcrumb { font-size: 13px; color: var(--c-text-secondary); margin-bottom: var(--s-5); }
.breadcrumb a { color: var(--c-secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.article { max-width: 760px; margin: 0 auto; padding: 56px 0 24px; }
.article-head { margin-bottom: var(--s-6); }
.article-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--c-text-primary); margin: var(--s-3) 0 var(--s-4); }
.article-meta { font-size: 14px; color: var(--c-text-secondary); }
.prose p { font-size: 18px; line-height: 30px; color: var(--c-text-primary); margin-bottom: var(--s-5); }
.prose h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: var(--s-7) 0 var(--s-4); }
.prose h3 { font-size: 20px; font-weight: 600; line-height: 1.25; margin: var(--s-6) 0 var(--s-3); }
.prose ul, .prose ol { margin: 0 0 var(--s-5) 22px; }
.prose li { font-size: 18px; line-height: 29px; color: var(--c-text-primary); margin-bottom: 8px; }
.prose a { color: var(--c-secondary); }
.prose strong { font-weight: 600; }
.prose .takeaway { background: rgba(244,239,230,0.6); border-left: 3px solid var(--c-secondary); border-radius: 8px; padding: var(--s-5) var(--s-6); margin: var(--s-6) 0; }
.prose .takeaway p { margin: 0; font-size: 16.5px; line-height: 27px; }
.prose .takeaway b { color: var(--c-secondary); }
.article-cta { margin-top: var(--s-7); }
.article-cta .glass { text-align: center; }
.article-cta h3 { font-size: 22px; font-weight: 600; margin-bottom: var(--s-3); }
.article-cta p { color: var(--c-text-secondary); margin-bottom: var(--s-5); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; }
.faq-item { border-bottom: 1px solid var(--c-border-soft); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: var(--s-5) 0;
  font-size: 19px; font-weight: 500; color: var(--c-text-primary);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--c-secondary); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 0 var(--s-5); font-size: 16px; line-height: 26px; color: var(--c-text-secondary); max-width: 72ch; }

/* ---------- Footer ---------- */
footer.site { padding: var(--s-7) 0; border-top: 1px solid var(--c-border-soft); color: var(--c-text-secondary); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- Section heading block ---------- */
.sec-head { margin-bottom: var(--s-5); }
.sec-head .eyebrow { margin-bottom: var(--s-3); }
.sec-head .lead { margin-top: var(--s-3); }

/* ---------- Мобильные уточнения ---------- */
@media (max-width: 560px) {
  section { padding: 44px 0; }
  .wrap { padding: 0 18px; }
  .nav-inner { padding: 14px 18px; }
  .brand .word { font-size: 17px; }
  .brand .mark { width: 34px; height: 34px; }
  .hero { padding: 24px 0 36px; }
  .hero-name .heavy { font-size: clamp(40px, 13vw, 62px); }
  .hero-role { font-size: clamp(20px, 6.2vw, 28px); }
  .hero .lead { font-size: 18px; line-height: 28px; }
  .hero-cta { gap: var(--s-3); }
  .hero-cta .btn-dark, .hero-cta .btn-link { width: auto; }
  h2.section-title { font-size: clamp(26px, 7.5vw, 34px); }
  .about-text p:first-child { font-size: 19px; line-height: 30px; }
  .glass { padding: var(--s-5); }
  .contact-card { padding: var(--s-5); }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Каскад появления — hero */
.hero-copy > .reveal:nth-child(1) { transition-delay: .05s; }
.hero-copy > .reveal:nth-child(2) { transition-delay: .13s; }
.hero-copy > .reveal:nth-child(3) { transition-delay: .21s; }
.hero-copy > .reveal:nth-child(4) { transition-delay: .29s; }
.hero-copy > .reveal:nth-child(5) { transition-delay: .37s; }

/* Каскад появления — карточки */
.services-grid > .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid > .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid > .reveal:nth-child(4) { transition-delay: .24s; }
.cases-grid > .reveal:nth-child(2) { transition-delay: .1s; }

/* Hover-микровзаимодействия (~150ms) */
.btn-primary { transition: background .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.btn-primary:hover { box-shadow: var(--shadow-soft); transform: translateY(-1px); }

.nav-links a:not(.btn-primary) { position: relative; }
.nav-links a:not(.btn-primary)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--c-secondary); transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav-links a:not(.btn-primary):hover::after { transform: scaleX(1); }

.services-grid .shell, .cases-grid .shell { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.services-grid .shell:hover, .cases-grid .shell:hover { transform: translateY(-4px); }

.chip { transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease); }
.chip:hover { border-color: var(--c-secondary); transform: translateY(-1px); }

.case-link, .contact-side a { transition: color .15s var(--ease); }
.faq-item summary { transition: color .15s var(--ease); }
.faq-item summary:hover { color: var(--c-secondary); }

.photo-frame .shell { overflow: hidden; }
.photo-frame img { transition: transform 1s var(--ease); }
.photo-frame:hover img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .photo-frame img, .btn-primary, .chip, .services-grid .shell, .cases-grid .shell { transition: none !important; }
  .photo-frame:hover img, .services-grid .shell:hover, .cases-grid .shell:hover, .chip:hover, .btn-primary:hover { transform: none; }
}
