/* Мамка Швейки: кремовий напрямок з помаранчевим акцентом */
:root {
  --cream: #F6EEDF;
  --cream-2: #EBDFC8;
  --cream-3: #E0D1B3;
  --ink: #202021;
  --orange: #F57827;
  --orange-text: #B8470A;
  --muted: #6B5E48;
  --radius: 28px;
  --wrap: 1280px;
  --pad: clamp(20px, 5vw, 80px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: Manrope, system-ui, sans-serif; font-size: 18px; line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--orange-text); }
h1, h2, h3 { font-family: Unbounded, Manrope, sans-serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 500; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.muted { color: var(--muted); font-size: 16px; }
.eyebrow { margin: 0 0 20px; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--orange-text); }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 32px;
  background: var(--orange); color: var(--ink); border: 0; border-radius: 999px;
  font: 700 17px/1 Manrope, sans-serif; text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--ink); filter: brightness(1.05); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { color: var(--cream); }
.btn-ghost { background: transparent; border: 2px solid var(--ink); }

/* шапка */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 238, 223, .95); backdrop-filter: blur(6px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo img { display: block; height: 64px; width: auto; }
.nav { display: flex; gap: 28px; font-weight: 500; }
.nav a { text-decoration: none; }
.menu-btn { display: none; min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; font: 700 15px Manrope, sans-serif; }

/* секції головної */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec-alt { background: var(--cream-2); }
.sec-dark { background: var(--ink); color: var(--cream); }
.sec-dark p { color: #D9CDB6; }
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 48px var(--pad) clamp(56px, 8vw, 96px); }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero-text p.lead-p { max-width: 540px; font-size: 20px; margin: 0 0 32px; }
.hero-media { flex: 1 1 380px; min-width: 0; min-height: 440px; border-radius: 200px 200px 32px 32px; background: var(--cream-2); display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.sec-tight { padding: 0 0 clamp(40px, 6vw, 72px); }
.facts li { background: var(--cream-2); border-radius: 22px; padding: 22px 24px; }
.facts strong { display: block; font-family: Unbounded, sans-serif; font-size: 22px; margin-bottom: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { display: block; background: var(--cream); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); box-shadow: 0 8px 28px rgba(32, 32, 33, .12); }
.card p { margin: 0; }
.grid4 .ph { background: var(--cream-2); }
.ph { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--cream-3); color: var(--muted); border-radius: 20px; min-height: 200px; margin-bottom: 24px; font-size: 15px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.grid4 .ph { min-height: 300px; margin: 0; border-radius: 24px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.steps .n { font-family: Unbounded, sans-serif; font-size: 48px; font-weight: 700; color: var(--orange); }
.steps h3 { margin: 8px 0; }

/* калькулятор */
.calc { background: var(--orange); border-radius: 36px; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 40px; margin: 0; }
.calc-text, .calc > div { flex: 1 1 340px; min-width: 0; }
.calc-form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.calc label, .lead-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.calc select, .calc input, .lead-form input, .lead-form select, .lead-form textarea {
  min-height: 52px; border-radius: 14px; border: 1px solid transparent; padding: 0 16px; font: 500 17px Manrope, sans-serif; background: var(--cream); color: var(--ink);
}
.lead-form textarea { padding: 14px 16px; min-height: 110px; resize: vertical; }
.calc-result { min-height: 56px; font-size: 20px; font-weight: 700; }
.calc-soon { align-items: center; justify-content: space-between; }
.calc-soon > div { flex: 1 1 360px; }

/* форма заявки */
.lead { display: flex; flex-wrap: wrap; gap: 40px; background: var(--cream-2); border-radius: 36px; padding: clamp(28px, 5vw, 56px); margin: 48px 0; }
.lead-text { flex: 1 1 320px; }
.lead-form { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 3px solid var(--orange); }
.lead-form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 15px; }
.lead-form .check input { min-height: 0; width: 20px; height: 20px; flex: none; margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 700; min-height: 1.4em; }

/* FAQ */
.faq { margin: 48px 0; }
.faq details { background: var(--cream-2); border-radius: 18px; padding: 18px 24px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 12px 0 0; }

/* текстові сторінки */
.prose { padding-top: 40px; padding-bottom: 56px; max-width: 900px; }
.prose p, .prose li { max-width: 760px; }
.draft-note { background: var(--cream-2); border-left: 6px solid var(--orange); padding: 14px 20px; border-radius: 12px; font-size: 16px; }

/* підвал */
.site-footer { background: var(--cream-2); padding: 56px 0 24px; margin-top: 0; }
.foot { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot-brand { flex: 1 1 320px; max-width: 460px; }
.foot-brand img { height: 48px; width: auto; }
.foot-links { flex: 1 1 320px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 32px; font-size: 16px; }
.foot-links a { text-decoration: none; }
.legal { margin-top: 32px; font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--cream); padding: 8px var(--pad) 20px; box-shadow: 0 12px 24px rgba(32, 32, 33, .1); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--cream-3); }
  .bar > .btn-sm { display: none; }
  .hero-media { min-height: 300px; border-radius: 120px 120px 28px 28px; }
}

.sec-alt .lead { background: var(--cream); }
.sec-alt .faq details { background: var(--cream); }
.lead-form input, .lead-form select, .lead-form textarea { border-color: var(--cream-3); }
.lead-form .check input { border: 0; }

@media (max-width: 900px) {
  .calc-text, .calc > div, .calc-form, .lead-text, .lead-form { flex-basis: auto; width: 100%; }
}

/* роботи (портфоліо) */
.works-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.works-filter[hidden] { display: none; }
.chip { font: 700 16px Manrope, sans-serif; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--cream-3); background: transparent; color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--orange); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.works-grid { columns: 3 280px; column-gap: 20px; }
.work { margin: 0 0 20px; break-inside: avoid; }
.work[hidden] { display: none; }
.work a { display: block; border-radius: 22px; overflow: hidden; background: var(--cream-2); }
.work img { display: block; width: 100%; height: auto; transition: transform .25s; }
.work a:hover img { transform: scale(1.03); }
.work figcaption { font-size: 15px; color: var(--muted); padding: 8px 4px 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(32, 32, 33, .82); }
.lightbox img { display: block; max-width: 100%; max-height: 90vh; margin: 0 auto; border-radius: 18px; }
.lightbox-close { position: absolute; top: -14px; right: -6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cream); font-size: 28px; line-height: 1; cursor: pointer; }
.works-head { padding-top: 40px; padding-bottom: 24px; }
.works-head p { max-width: 760px; }

.logo > img[src$='.svg'] { height: 60px; }
.foot-brand > img[src$='.svg'] { height: 52px; }
.logo .lk-a, .logo .lk-c, .foot-brand .lk-a, .foot-brand .lk-c { color: var(--ink); }
.foot-brand .lk-c { margin-bottom: 4px; }
.foot-brand .lk-c .lk-tag { white-space: nowrap; }
@media (max-width: 480px) { .logo .lk-a .lk-div, .logo .lk-a .lk-tag { display: none; } }

/* порівняння варіантів логотипа (чернетка) */
.lk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.lk-card { background: var(--cream-2); border-radius: 24px; padding: 20px 24px 24px; }
.lk-card h2 { font-size: 20px; margin: 0 0 4px; }
.lk-card p { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.lk-bar { background: var(--cream); border-radius: 16px; padding: 14px 20px; display: flex; align-items: center; gap: 16px; min-height: 92px; }
.lk-tag { font: 700 11px/1.35 Manrope, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.lk-a { align-items: center; gap: 14px; display: flex; }
.lk-a .lk-div { width: 1px; align-self: stretch; background: var(--cream-3); margin: 6px 0; }
.lk-c { display: inline-flex; flex-direction: column; gap: 4px; }
.lk-c .lk-tag { font-size: 8.5px; letter-spacing: .04em; text-align: justify; text-align-last: justify; white-space: nowrap; }
.lk-bar img { display: block; height: auto; }
.logo, .logo:hover, .lk-a, .lk-c, .lk-tag { text-decoration: none; }
.nav a, .bar .btn { white-space: nowrap; }
.lk-a .lk-tag { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1240px) { .nav { gap: 18px; } .bar { gap: 14px; } .lk-a { gap: 10px; } }
.lk-a .lk-div { flex: none; }
@media (max-width: 1200px) { .logo .lk-a .lk-div, .logo .lk-a .lk-tag { display: none; } }
.logo, .logo img { flex: none; }
@media (min-width: 901px) and (max-width: 1000px) { .nav { gap: 14px; font-size: 15px; } }
