:root {
  --bg: #F5E8E2;
  --ink: #12332B;
  --acc: #164A3C;
  --pink: #E3B3A6;
  --card: #FBF3EF;
  --line: #EAD6CE;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 17px; }
a { color: inherit; }
p, li, label, button, input, textarea, a, summary, .footer span { letter-spacing: .005em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

h1, h2 { font-family: var(--serif); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: 0; font-variant-ligatures: no-common-ligatures; margin-bottom: clamp(28px, 4vw, 48px); }
.block { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font: 800 15px/1.25 var(--sans); letter-spacing: .01em; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.sm { padding: 10px 18px; font-size: 13px; }
.btn.main { background: var(--acc); color: var(--bg); }
.btn.alt { border-color: var(--ink); color: var(--ink); }

/* ---------- шапка ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(245, 232, 226, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { font: italic 800 28px var(--serif); text-decoration: none; }
.links { display: flex; gap: 32px; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.links a { text-decoration: none; color: var(--ink); }
.links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 2px solid var(--acc); border-radius: 999px; padding: 3px; background: var(--card); }
.lang button { border: 0; background: none; font: 800 14px var(--sans); color: var(--ink); padding: 7px 12px; border-radius: 999px; cursor: pointer; opacity: .75; }
.lang button:hover { opacity: 1; }
.lang button.on { background: var(--acc); color: var(--bg); opacity: 1; }

/* ---------- первый экран ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); }
.kicker { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .7; margin-bottom: 20px; }
.hero h1 { font-size: clamp(52px, 9.5vw, 124px); }
.hero h1 em { font-weight: 600; color: var(--acc); }
.answer { font: italic 600 clamp(28px, 4vw, 48px)/1.1 var(--serif); color: #B77866; margin-top: 12px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 540px; margin: 24px 0 32px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.art { display: block; aspect-ratio: 344 / 394; max-width: 540px; width: 100%; justify-self: end; }

/* движение на картинке: город вырастает, появляется значок с названием, текст по кругу вращается */
.rise { animation: rise 1s cubic-bezier(.2, .8, .2, 1) both; }
.r1 { animation-delay: .1s; }
.r2 { animation-delay: .3s; }
.r3 { animation-delay: .5s; }
.badge { transform-box: fill-box; transform-origin: center; animation: pop .7s 1.2s cubic-bezier(.34, 1.56, .64, 1) both; }
.badge-ring { font: 800 10.5px var(--sans); transform-origin: 316px 98px; animation: spin 18s linear infinite; }
.badge-mark { font: italic 800 31px var(--serif); letter-spacing: -.5px; }
@keyframes rise { from { transform: translateY(240px); } }
@keyframes pop { from { transform: scale(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .rise, .badge, .badge-ring { animation: none; }
}

.reply { font-size: 14px; font-weight: 600; opacity: .75; margin-top: 16px; }
.contact .reply { margin: -12px 0 28px; }

/* ---------- цифры ---------- */
.stats { padding-bottom: clamp(40px, 6vw, 72px); }
.stats-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { border-top: 2px solid var(--ink); padding-top: 16px; }
.stat b { display: block; font: italic 600 clamp(48px, 7vw, 80px)/1 var(--serif); color: #B77866; }
.stat span { display: block; margin-top: 8px; font-weight: 700; max-width: 260px; }
.stats-lic { margin-top: 28px; font-size: 14px; opacity: .75; }

/* ---------- «Знакомо?» ---------- */
.pains { background: var(--acc); color: var(--bg); padding: clamp(64px, 9vw, 120px) 0; }
.pain-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pain-list li { border: 1px solid rgba(245, 232, 226, .25); border-radius: 22px; padding: 30px; font: italic 600 clamp(19px, 2vw, 24px)/1.3 var(--serif); }
.pain-list li::before { content: "“"; display: block; color: var(--pink); font-size: 44px; line-height: .6; margin-bottom: 8px; }
.outro { margin-top: 36px; font-size: clamp(18px, 2vw, 22px); font-weight: 600; color: var(--pink); }

/* ---------- услуги ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card { background: transparent; color: var(--ink); border: 2px solid var(--acc); border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font: 800 clamp(22px, 2.4vw, 28px)/1.25 var(--serif); }
.card .sub { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #9A5845; }

/* ---------- цены ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price ul { list-style: none; display: grid; }
.price li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.price li b { flex: none; max-width: 46%; text-align: right; color: var(--acc); font-weight: 800; }
.price-note { margin-top: 28px; font-size: 14px; line-height: 1.5; opacity: .8; max-width: 820px; }
.price-cta { margin-top: 24px; }

/* ---------- чем отличаемся ---------- */
.why .benefit-list { grid-template-columns: 1fr 1fr; }
.why .benefit { background: var(--card); border: 2px solid var(--acc); }

/* ---------- сроки — наша забота ---------- */
.remind { background: var(--ink); color: var(--bg); padding: clamp(64px, 9vw, 120px) 0; }
.remind-in { display: grid; grid-template-columns: 320px 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.remind h2 { color: var(--pink); }
.remind-text { font-size: clamp(17px, 1.7vw, 21px); max-width: 480px; }

/* переписка в стиле мессенджера */
.phone { border: 6px solid #0A1F1A; border-radius: 30px; overflow: hidden; background: #0B141A; color: #E9EDEF; font-size: 14px; line-height: 1.35; width: 100%; max-width: 320px; justify-self: center; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #1F2C34; }
.phone-av { width: 36px; height: 36px; border-radius: 50%; background: var(--pink); color: var(--ink); display: flex; align-items: center; justify-content: center; font: italic 800 13px var(--serif); flex: none; }
.phone-head b { display: block; font-weight: 700; font-size: 15px; }
.phone-head span { font-size: 12px; color: #8696A0; }
.phone-chat { padding: 16px 12px 18px; display: flex; flex-direction: column; gap: 7px; min-height: 340px; }
.msg { max-width: 84%; padding: 8px 10px 5px; border-radius: 10px; background: #1F2C34; }
.msg i { display: block; text-align: right; font-size: 11px; font-style: normal; color: #8696A0; margin-top: 3px; }
.msg.in { align-self: flex-start; border-top-left-radius: 2px; }
.msg.out { align-self: flex-end; border-top-right-radius: 2px; background: #005C4B; }
.msg.out i { color: #A9CFC6; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 14px; border-radius: 10px; border-top-left-radius: 2px; background: #1F2C34; }
.typing b { width: 6px; height: 6px; border-radius: 50%; background: #8696A0; animation: bounce 1.2s infinite; }
.typing b:nth-child(2) { animation-delay: .2s; }
.typing b:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .typing b { animation: none; } }

/* ---------- шаги ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: "0" counter(s); font: italic 600 40px/1 var(--serif); color: #B77866; display: block; margin-bottom: 12px; }
.steps h3 { font-size: 19px; line-height: 1.25; font-weight: 800; margin-bottom: 6px; }
.steps p, .card p { font-size: 15.5px; }
.steps-cta { margin-top: clamp(32px, 5vw, 56px); text-align: center; }
.steps-cta p { font: italic 600 clamp(22px, 2.6vw, 30px)/1.2 var(--serif); color: #B77866; margin-bottom: 16px; }

/* ---------- что вы получаете ---------- */
.benefit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefit { background: var(--bg); border-radius: 24px; padding: 30px; }
.benefit h3 { font: 800 24px/1.25 var(--serif); margin-bottom: 8px; }
/* ---------- о нас ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.faq-band { background: var(--ink); color: var(--bg); padding: clamp(64px, 9vw, 120px) 0; }
.faq-band h2 { color: var(--pink); }
.about p { margin-bottom: 16px; max-width: 600px; }
.about-cta { margin-top: 28px; }
.about-cta p { font: italic 600 clamp(20px, 2.2vw, 26px)/1.25 var(--serif); color: #B77866; margin-bottom: 16px; max-width: 460px; }
.about-img { display: block; width: 100%; height: auto; border-radius: 24px; }

/* ---------- шпаргалка ---------- */
.leadmag { background: var(--pink); padding: clamp(56px, 8vw, 96px) 0; }
.leadmag h2 { margin-bottom: 20px; }
.leadmag .lead { margin-bottom: 0; }
.leadmag form { background: var(--bg); }
label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 14px; }
label.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--acc); }

/* ---------- вопросы ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid rgba(245, 232, 226, .3); border-radius: 32px; color: var(--bg); transition: background .2s, border-radius .2s; }
.faq details[open] { background: rgba(245, 232, 226, .08); border-radius: 24px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 64px 20px 28px; font-size: clamp(17px, 1.8vw, 20px); font-weight: 800; line-height: 1.3; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font: 400 30px/1 var(--sans); color: var(--pink); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 64px 24px 28px; max-width: 760px; opacity: .9; }

/* ---------- контакты ---------- */
.contact { background: var(--bg); color: var(--ink); padding: clamp(64px, 9vw, 120px) 0; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact h2 { margin-bottom: 0; }
.direct { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .7; margin-bottom: 12px; }
.channels { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.channels a { border: 1.5px solid var(--ink); border-radius: 999px; padding: 10px 18px; text-decoration: none; font-weight: 600; font-size: 15px; }
.channels a:hover { background: var(--pink); color: var(--ink); border-color: var(--pink); }
form { background: var(--card); color: var(--ink); border: 2px solid var(--acc); border-radius: 28px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 800; letter-spacing: .01em; }
input, textarea { font: 400 16px var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; width: 100%; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
input.bad { border-color: #B3402E; }
.form-msg { font-size: 15px; font-weight: 600; min-height: 1.4em; }

/* ---------- подвал и кнопка WhatsApp ---------- */
.footer { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 28px; padding-bottom: 96px; font-size: 14px; opacity: .75; }
.float { position: fixed; right: 18px; bottom: 18px; z-index: 20; display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 132px; }
.float a { background: var(--ink); color: var(--bg); border: 2px solid var(--pink); border-radius: 999px; padding: 11px 0; text-align: center; line-height: 1.2; font-weight: 800; font-size: 14px; text-decoration: none; box-shadow: 0 8px 24px rgba(18, 51, 43, .25); }

.footer { align-items: center; justify-content: center; border-top: 1px solid rgba(18, 51, 43, .4); }
.social { display: flex; justify-content: center; gap: 20px; flex-basis: 100%; font-weight: 800; }
.social a { text-underline-offset: 4px; }
.social .ig { display: inline-flex; transition: transform .15s; }
.social .ig:hover { transform: translateY(-2px); }

.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; flex-basis: 100%; font-size: 14px; }
.legal a, .legal button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.disclaimer { flex-basis: 100%; max-width: 760px; margin: 0 auto; text-align: center; font-size: 13px; line-height: 1.5; opacity: .8; }

/* ---------- фраза про согласие у формы ---------- */
.form-note { font-size: 13px; line-height: 1.45; opacity: .8; margin-top: -6px; }

/* ---------- баннер cookies ---------- */
.consent { position: fixed; left: 18px; bottom: 18px; z-index: 30; max-width: 500px; display: grid; gap: 16px; background: var(--ink); color: var(--bg); border: 2px solid var(--pink); border-radius: 24px; padding: 22px 24px; box-shadow: 0 12px 36px rgba(18, 51, 43, .35); }
.consent[hidden] { display: none; }
.consent p { font-size: 15px; line-height: 1.45; }
.consent a { color: var(--pink); text-underline-offset: 3px; }
.consent-btns { display: flex; gap: 10px; }
.consent-btns .btn { flex: 1; padding: 12px 16px; font-size: 14px; color: var(--ink); background: var(--pink); }

/* ---------- политика конфиденциальности ---------- */
.doc { max-width: 800px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 88px); }
.doc h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 8px; }
.doc h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 40px 0 12px; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 14px 22px; display: grid; gap: 8px; }

/* ---------- телефон и планшет ---------- */
@media (max-width: 900px) {
  .links { display: none; }
  .hero, .about, .contact-in, .remind-in { grid-template-columns: 1fr; }
  .remind-copy { order: -1; }
  .art { max-width: 340px; justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .benefit-list, .why .benefit-list { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .pain-list, .cards { grid-template-columns: 1fr; }
  .stats-list { grid-template-columns: 1fr; }
  .nav-right .btn { display: none; }
  .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 18px; }
  .ctas .btn.main { width: 100%; }
  .ctas .btn.alt { flex: 1; }
}

/* ---------- чередование цветов блоков ---------- */
:root { --tint: #EFD5CB; }

/* hero: кремовый (как сейчас) */
/* цифры: розовая полоса */
.stats { max-width: none; background: var(--pink); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.stats > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.stats .stat { border-top-color: var(--ink); }
.stats .stat b { color: var(--acc); }
.stats-lic { opacity: .85; }
/* «Знакомо?»: зелёный (как сейчас) */
/* услуги: кремовый (как сейчас) */
/* цены: светло-розовый фон, карточки светлые */
#pricing { max-width: none; background: var(--tint); }
#pricing > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
#pricing .card { background: var(--card); }
/* напоминания: тёмный (как сейчас) */
/* что вы получаете: розовый */
#why { max-width: none; background: var(--pink); }
#why > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
/* как работаем: кремовый */
/* о нас: светло-розовый */
#about { max-width: none; background: var(--tint); }
#about { padding-left: max(20px, calc((100% - 1120px) / 2)); padding-right: max(20px, calc((100% - 1120px) / 2)); }
/* вопросы: тёмный (как сейчас) */
/* шпаргалка: розовый (как сейчас) */
/* контакты: кремовый (как сейчас) */

.btn.main.pains-cta { margin-top: 24px; background: var(--pink); color: var(--ink); }

/* ---------- телефон: крупнее зоны нажатия, цены в столбик ---------- */
@media (max-width: 600px) {
  .price li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .price li b { max-width: none; text-align: left; }
  .lang button { padding: 10px 14px; }
  label.check input { width: 24px; height: 24px; }
  .legal a, .legal button { padding: 10px 0; }
  .form-note a { display: inline-block; padding: 6px 0; }
  .social .ig { padding: 8px; }
}
