/* =========================================================
   Психолог Михайло Шлапацький — сайт 2 (золото + сірий градієнт)
   ========================================================= */
:root {
  --gold: #c7ab52;
  --gold-dark: #a48639;
  --gold-grad: linear-gradient(180deg, #cdb05a 0%, #a68a3f 100%);
  --grey-grad: linear-gradient(90deg, #b6bec3 0%, #e5e9f1 100%);
  --ink: #2f2f2f;
  --text: #4a4a4a;
  --muted: #7a7a7a;
  --line: #e2e2e2;
  --bg-grey: #f4f4f4;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(40, 40, 40, .10);
  --shadow-sm: 0 6px 18px rgba(40, 40, 40, .08);
  --font: "Montserrat", "Segoe UI", Arial, sans-serif;
  --container: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--font); font-size: 16.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { color: var(--ink); font-weight: 500; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--grey { background: var(--bg-grey); }
.title { margin-bottom: 44px; }
.center { text-align: center; margin-top: 36px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 34px; border: 0; border-radius: 8px;
  background: var(--gold-grad); color: #fff; font-weight: 500; font-size: 1rem; text-decoration: none; line-height: 1.2;
  box-shadow: 0 8px 20px rgba(166, 138, 63, .28); transition: filter .2s, transform .2s, box-shadow .2s;
}
.btn:hover { color: #fff; filter: brightness(1.07); transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; }
.btn--outline { background: transparent; color: var(--gold-dark); border: 1.5px solid var(--gold); border-radius: 999px; box-shadow: none; padding: 12px 40px; }
.btn--outline:hover { background: var(--gold); color: #fff; }
.btn--light { background: #d6d6d6; color: var(--ink); box-shadow: none; }
.btn--light:hover { background: #fff; color: var(--ink); }
.link-more { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.link-more::after { content: " →"; }

/* =========================================================
   Header
   ========================================================= */
.header { position: relative; z-index: 100; background: var(--grey-grad); }
.header::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: calc(50% - 620px + 450px); max-width: 42%; background: var(--gold); z-index: 0; }
.topbar { position: relative; z-index: 1; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--gold-dark); }
.logo__mark { width: 56px; height: 56px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name { font-weight: 600; font-size: 1.08rem; color: #8a6f2c; }
.logo__sub { font-size: .82rem; color: #8a6f2c; margin-left: 4px; }
.topbar__contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 1.05rem; }
.topbar__contacts a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar__contacts a:hover { color: #fff; }
.topbar__contacts svg { width: 16px; height: 16px; }

.navbar { position: relative; z-index: 2; display: flex; align-items: center; gap: 20px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); padding: 0 34px 0 34px; min-height: 92px; margin-bottom: -46px; }
.nav { flex: 1; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 30px; min-height: 92px; }
.nav__list > li { display: flex; align-items: center; }
.nav__list > li:first-child, .nav__list > li:last-child { margin-right: auto; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 0; color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 500; white-space: nowrap; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__link[data-active] { color: var(--gold-dark); }
.nav__link--home { align-self: stretch; padding: 0 30px; background: var(--gold-grad); color: #fff !important; }
.nav__link--home:not([aria-current]) { background: transparent; color: var(--ink) !important; padding: 0; }
.nav__link--home:not([aria-current]):hover { color: var(--gold-dark) !important; }
.chev { width: 10px; height: 10px; transition: transform .2s; }
.nav__item--drop { position: relative; }
.dropdown { list-style: none; margin: 0; padding: 0; position: absolute; top: calc(100% - 10px); left: -20px; min-width: 300px; background: var(--gold); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; box-shadow: var(--shadow); }
.dropdown a { display: block; padding: 16px 26px; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .5); }
.dropdown a:hover { background: var(--gold-dark); color: #fff; }
.nav__item--drop:hover .dropdown, .nav__item--drop:focus-within .dropdown, .nav__item--drop.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__item--drop.is-open .chev { transform: rotate(180deg); }
.navbar__cta { flex-shrink: 0; }
.mobile-contacts { display: none; }
.burger { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .7); position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 12px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; content: ""; }
.burger span { top: 22px; }
.burger span::before { top: -7px; left: 0; }
.burger span::after { top: 7px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; background: var(--grey-grad); overflow: hidden; }
.hero::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: calc(50% - 620px + 450px); max-width: 42%; background: var(--gold); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 450px; align-items: stretch; min-height: 640px; }
.hero__content { align-self: center; padding: 110px 40px 80px 0; }
.hero__eyebrow { font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; color: #6d6d6d; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-weight: 400; font-size: clamp(1.9rem, 3.2vw, 2.9rem); margin-bottom: 26px; }
.hero h1 span { display: block; font-size: .72em; color: #555; margin-top: 10px; }
.hero__lead { font-size: 1.2rem; margin: 0 0 6px; }
.hero__strong { font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-bottom: 30px; }
.hero__photo { position: relative; margin-top: 46px; }
.hero__photo picture, .hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

/* ---------- Features ---------- */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature { display: flex; align-items: center; gap: 20px; min-height: 230px; padding: 30px 40px; background: #b1b1b4; color: #fff; font-size: 1.35rem; font-weight: 500; line-height: 1.3; }
.feature--gold { background: var(--gold); }
.feature__icon { width: 82px; height: 82px; flex-shrink: 0; color: #fff; opacity: .9; }
.feature__icon svg { width: 100%; height: 100%; }

/* ---------- About (home) ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.about__hello { font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.about__note { font-weight: 600; color: var(--gold-dark); margin: 20px 0 26px; }
.about__photos { position: relative; padding: 0 0 60px 40px; }
.about__photo { overflow: hidden; box-shadow: var(--shadow); }
.about__photo--main { border: 8px solid #fff; }
.about__photo--small { position: absolute; left: 0; bottom: 0; width: 48%; border: 6px solid #fff; }
.about__photos::before { content: ""; position: absolute; top: -24px; right: -24px; width: 70%; height: 70%; border: 2px solid var(--gold); z-index: -1; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.service-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.service-card picture, .service-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s; }
.service-card:hover img { transform: scale(1.04); }
.service-card__bar { position: absolute; left: 26px; right: 26px; bottom: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: 12px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.service-card__bar b { display: block; font-size: 1.12rem; font-weight: 600; }
.service-card__bar small { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.service-card__arrow { width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center; border: 1.5px solid var(--gold); border-radius: 8px; background: #fff; color: var(--gold-dark); transition: .2s; }
.service-card__arrow svg { width: 26px; height: 26px; }
.service-card:hover .service-card__arrow { background: var(--gold); color: #fff; }

/* ---------- Booking band ---------- */
.band { background: var(--gold); padding: 70px 0; }
.band h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 500; margin-bottom: 26px; }
.band__alt { margin: 14px 0 0; color: var(--ink); font-size: .95rem; }
.band__alt a { color: var(--ink); font-weight: 600; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form input[type=text], .form input[type=tel] {
  width: 100%; min-height: 56px; padding: 14px 20px; border: 1px solid #e0e0e0; border-radius: 10px; background: #fff; font: inherit; font-size: 1rem; color: var(--ink);
}
.form input:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(199, 171, 82, .3); }
.form input[aria-invalid="true"] { border-color: #c23b3b; }
.form--inline { grid-template-columns: 1fr 1fr 220px; align-items: start; }
.form--inline .btn { grid-row: 1; grid-column: 3; }
.form--inline .form__consent, .form--inline .form__status { grid-column: 1 / -1; }
.form__consent { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--ink); line-height: 1.4; cursor: pointer; }
.form__consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold-dark); flex-shrink: 0; }
.form__consent a { color: inherit; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: .95rem; font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #1c6b3a; }
.form__status.is-error { color: #a32626; }
.form .btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- Tags (blog titles) ---------- */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tags a { display: block; padding: 12px 20px; background: var(--bg-grey); border: 1px solid #b9b9b9; color: var(--text); text-decoration: none; font-size: 1rem; transition: .2s; }
.tags a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero { background: var(--grey-grad); padding: 90px 0 50px; }
.page-hero h1 { font-weight: 500; margin: 0; }
.page-hero__meta { margin: 16px 0 0; color: #555; }
.breadcrumbs { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; }
.breadcrumbs li { display: flex; gap: 8px; align-items: center; }
.breadcrumbs li + li::before { content: "›"; color: var(--gold-dark); }
.breadcrumbs a { color: var(--ink); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-dark); }
.breadcrumbs [aria-current] { color: var(--gold-dark); }

.personal { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.personal__lead { font-size: 1.2rem; color: var(--ink); }
.personal__photo { box-shadow: var(--shadow); border: 8px solid #fff; }
.personal__more { margin-top: 40px; max-width: 980px; }
.personal__more h2 { font-size: 1.5rem; margin-top: 1.4em; color: var(--gold-dark); }
.personal__more hr { width: 60px; margin: 40px 0 10px; border: 0; border-top: 2px solid var(--gold); }
.lines { font-style: italic; color: var(--ink); border-left: 3px solid var(--gold); padding-left: 18px; }
.signature { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.signature strong { display: block; font-size: 1.3rem; color: var(--ink); font-weight: 600; }
.signature span { display: block; color: var(--muted); }

.text-page { max-width: 980px; }
.text-page h2 { font-size: 1.55rem; color: var(--gold-dark); margin-top: 1.6em; }
.wide-photo { margin: 0 0 34px; max-height: 460px; overflow: hidden; box-shadow: var(--shadow); }
.wide-photo img { width: 100%; height: 460px; object-fit: cover; object-position: 50% 25%; }
.gold-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.gold-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.gold-list li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.format { background: var(--bg-grey); border-top: 4px solid var(--gold); padding: 26px 30px; }
.format h2 { font-size: 1.25rem; margin-top: 0; }
.format p { margin: 0; }
.price-box { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; padding: 30px 36px; background: #fff; border: 1.5px solid var(--gold); box-shadow: var(--shadow-sm); }
.price-box > div { flex: 1; min-width: 220px; }
.price-box__label { display: block; font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.price-box__meta { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-top: 4px; }
.price-box__meta svg { width: 18px; height: 18px; color: var(--gold-dark); }
.price-box__value { font-size: 2rem; font-weight: 600; color: var(--gold-dark); white-space: nowrap; }

/* ---------- Blog ---------- */
.blog-hero { background: var(--grey-grad); overflow: hidden; }
.blog-hero__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: end; }
.blog-hero__photo { align-self: end; margin-top: 60px; max-height: 560px; overflow: hidden; }
.blog-hero__photo img { width: 100%; max-height: 560px; object-fit: cover; object-position: 50% 10%; }
.blog-hero__text { align-self: center; padding: 60px 0; }
.blog-hero__text h1 { font-style: italic; font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
.blog-hero__text h1 span { display: block; }
.blog-hero blockquote { margin: 30px 0 0; font-style: italic; font-size: 1.2rem; color: var(--ink); max-width: 560px; }
.blog-hero cite { display: block; text-align: right; margin-top: 8px; color: #555; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.article-card { display: flex; flex-direction: column; background: #fff; box-shadow: var(--shadow); }
.article-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e8e3d4; }
.article-card__img picture, .article-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.article-card:hover .article-card__img img { transform: scale(1.04); }
.article-card h2, .article-card h3 { font-size: 1.2rem; font-weight: 500; line-height: 1.4; margin: 24px 26px 12px; }
.article-card h2 a, .article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h2 a:hover, .article-card h3 a:hover { color: var(--gold-dark); }
.article-card p { margin: 0 26px 16px; color: var(--muted); font-size: .95rem; }
.article-card .link-more { margin: auto 26px 26px; }
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; }
.cover-ph svg { width: 70px; height: 70px; transition: transform .4s; }
.article-card:hover .cover-ph svg { transform: scale(1.08); }
.cover-1 { background: linear-gradient(135deg, #cdb05a, #9d8440); }
.cover-2 { background: linear-gradient(135deg, #b6bec3, #8e979d); }
.cover-3 { background: linear-gradient(135deg, #c9b98c, #a48f5a); }
.cover-4 { background: linear-gradient(135deg, #a7a7ab, #cdb05a); }

.article { max-width: 860px; }
.article__cover { margin: 0 0 36px; aspect-ratio: 16 / 9; overflow: hidden; box-shadow: var(--shadow); }
.article__cover picture, .article__cover img, .article__cover .cover-ph { width: 100%; height: 100%; object-fit: cover; }
.article h2 { font-size: 1.55rem; color: var(--gold-dark); margin-top: 1.6em; }
.article h3 { margin-top: 1.3em; }
.article li { margin-bottom: 6px; }
.article blockquote { margin: 30px 0; padding: 22px 28px; background: var(--bg-grey); border-left: 4px solid var(--gold); color: var(--ink); font-style: italic; }
.author-box { display: flex; gap: 22px; align-items: center; margin-top: 50px; padding: 24px; background: var(--bg-grey); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; }
.author-box p { margin: 0; }

/* ---------- Contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; margin-top: 3px; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: #eee; }

/* =========================================================
   Footer
   ========================================================= */
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; }
.footer__form { background: var(--gold); padding: 80px max(24px, calc(50vw - 600px)) 80px 60px; padding-left: max(24px, calc(50vw - 620px)); }
.footer__form h2 { color: #fff; font-size: 1.6rem; font-weight: 600; margin-bottom: 30px; }
.footer__form .form__consent { color: #fff; }
.footer__form .form__status.is-ok, .footer__form .form__status.is-error { color: #fff; }
.footer__form .form__status a { color: #fff; }
.footer__form .btn { background: #d6d6d6; color: var(--ink); box-shadow: none; }
.footer__form .btn:hover { background: #fff; color: var(--ink); }
.footer__info { background: var(--bg-grey); padding: 80px 24px 40px 70px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; margin-top: 50px; }
.footer__cols h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer__cols a { color: var(--text); text-decoration: none; }
.footer__cols a:hover { color: var(--gold-dark); }
.footer__contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contacts svg { width: 22px; height: 22px; color: var(--gold-dark); flex-shrink: 0; margin-top: 2px; }
.footer__copy { margin: 50px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- Floating & modal ---------- */
.to-top { position: fixed; right: 22px; bottom: 100px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--gold-grad); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.tg-float { position: fixed; right: 18px; bottom: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #2aabee; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(42, 171, 238, .45); }
.tg-float:hover { color: #fff; transform: scale(1.06); }
.tg-float svg { width: 28px; height: 28px; }
.modal { border: 0; padding: 0; border-radius: 14px; width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.modal::backdrop { background: rgba(30, 30, 30, .55); }
.modal__inner { position: relative; padding: 46px 34px 34px; border-top: 6px solid var(--gold); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-grey); font-size: 1.5rem; line-height: 1; }
.modal h2 { font-size: 1.5rem; font-weight: 400; }
.modal h2 b { display: block; font-weight: 600; }
.modal .btn { width: 100%; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .nav__list { gap: 22px; }
  .navbar { padding: 0 24px; }
  .hero__inner { grid-template-columns: 1fr 400px; }
  .footer__info { padding-left: 40px; }
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .feature { min-height: 170px; padding: 24px; font-size: 1.1rem; }
  .feature__icon { width: 60px; height: 60px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__form, .footer__info { padding: 60px 24px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .header { position: sticky; top: 0; }
  .header::after, .hero::after { display: none; }
  .topbar { background: #fff; box-shadow: var(--shadow-sm); }
  .topbar__inner { min-height: var(--header-h); }
  .topbar__contacts { display: none; }
  .logo__mark { width: 46px; height: 46px; }
  .burger { display: block; }
  .header .container:last-child { padding: 0; }
  .navbar { display: contents; }
  .navbar__cta { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 16px 24px 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s; z-index: 99; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; min-height: 0; }
  .nav__list > li { display: block; border-bottom: 1px solid var(--line); }
  .nav__list > li:first-child, .nav__list > li:last-child { margin-right: 0; }
  .nav__link, .nav__link--home, .nav__link--home:not([aria-current]) { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 1.12rem; background: none; color: var(--ink) !important; }
  .nav__link[aria-current="page"] { color: var(--gold-dark) !important; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: none; display: none; min-width: 0; padding: 0 0 10px 12px; }
  .dropdown a { border: 0; padding: 10px 0; }
  .dropdown a:hover { background: none; color: var(--gold-dark); }
  .nav__item--drop.is-open .dropdown { display: block; }
  .mobile-contacts { display: grid; gap: 14px; margin-top: 26px; }
  .mobile-contacts a:not(.btn) { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
  .mobile-contacts svg { width: 20px; height: 20px; color: var(--gold-dark); }

  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding: 44px 0 30px; text-align: center; }
  .hero__photo { margin: 0 auto; max-width: 420px; }
  .hero__photo::before { content: ""; position: absolute; inset: 20% -40px 0 -40px; background: var(--gold); z-index: -1; }
  .features__grid { grid-template-columns: 1fr; padding: 0; }
  .feature { min-height: 0; }
  .about, .personal, .contacts, .blog-hero__inner, .formats { grid-template-columns: 1fr; gap: 36px; }
  .about__photos { max-width: 440px; margin: 0 auto; }
  .personal__photo { max-width: 420px; margin: 0 auto; }
  .services { grid-template-columns: 1fr; gap: 24px; }
  .form--inline { grid-template-columns: 1fr; }
  .form--inline .btn { grid-row: auto; grid-column: auto; }
  .blog-hero__photo { order: 2; max-width: 380px; margin: 0 auto; }
  .blog-hero__text { padding: 44px 0 0; }
  .page-hero { padding: 44px 0 36px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .cards { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn--outline { width: auto; }
  .service-card { aspect-ratio: 4 / 4.4; }
  .service-card__bar { left: 14px; right: 14px; bottom: 14px; padding: 16px 18px; }
  .service-card__arrow { width: 48px; height: 48px; }
  .tags a { padding: 10px 14px; font-size: .92rem; }
  .price-box { padding: 24px; }
  .wide-photo img { height: 260px; }
  .footer__cols { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; text-align: center; }
  .modal__inner { padding: 50px 20px 24px; }
  .to-top { right: 16px; bottom: 92px; }
}
