/* ============================================================
   Дом в аренду в Ивантеевке — стили
   Палитра: лесная зелень + тёплый песок/дерево
   ============================================================ */
:root {
    --forest:       #16382b;
    --forest-2:     #1f4d3a;
    --moss:         #2f6b4f;
    --sand:         #d7a95b;
    --sand-soft:    #e8c98a;
    --cream:        #f7f3ea;
    --cream-2:      #efe7d6;
    --ink:          #1c2421;
    --muted:        #5d6b63;
    --line:         #e2dac8;
    --white:        #ffffff;

    --radius:       18px;
    --radius-sm:    12px;
    --shadow:       0 18px 50px -22px rgba(22, 56, 43, .45);
    --shadow-soft:  0 8px 30px -16px rgba(22, 56, 43, .35);
    --maxw:         1140px;
    --ease:         cubic-bezier(.22, .61, .36, 1);

    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: "Georgia", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration: none; transition: color .2s; }
a:hover { color: var(--forest); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 750; color: var(--forest); }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.kicker {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: .6rem;
}

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--forest); color: var(--cream);
    padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.button {
    --bg: var(--forest);
    --fg: var(--cream);
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem 1.6rem;
    border: 1.5px solid transparent;
    border-radius: 100px;
    font: inherit; font-weight: 650; font-size: 1rem;
    background: var(--bg); color: var(--fg);
    cursor: pointer; text-align: center;
    transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); color: var(--fg); }
.button:active { transform: translateY(0); }
.button.primary { background: var(--sand); color: var(--forest); box-shadow: 0 10px 24px -12px rgba(215,169,91,.8); }
.button.primary:hover { background: var(--sand-soft); color: var(--forest); }
.button.ghost { background: transparent; border-color: currentColor; color: var(--forest); }
.button.ghost:hover { background: var(--forest); color: var(--cream); }
.button.full { width: 100%; }
.button.small { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .8rem clamp(1rem, 4vw, 2.5rem);
    background: rgba(247, 243, 234, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-soft); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--forest); }
.brand-mark {
    display: grid; place-items: center;
    width: 44px; height: 44px;
    background: var(--forest); color: var(--sand);
    border-radius: 12px; font-weight: 800; font-size: .95rem; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { color: var(--muted); font-size: .8rem; }

.main-nav { display: flex; gap: 1.5rem; }
.main-nav a { color: var(--ink); font-weight: 550; font-size: .98rem; position: relative; }
.main-nav a::after {
    content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
    background: var(--sand); transition: width .25s var(--ease);
}
.main-nav a:hover { color: var(--forest); }
.main-nav a:hover::after { width: 100%; }

.header-phone {
    display: inline-flex; align-items: center; gap: .4rem;
    font-weight: 700; color: var(--forest);
    padding: .55rem 1rem; border-radius: 100px; border: 1.5px solid var(--line);
    white-space: nowrap; transition: background .2s, border-color .2s;
}
.header-phone:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { max-width: var(--maxw); margin: 1.2rem auto 0; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--forest); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    max-width: var(--maxw);
    margin: 1.2rem auto 0;
    border-radius: 28px;
    overflow: hidden;
    min-height: clamp(420px, 70vh, 640px);
    display: flex; align-items: flex-end;
    box-shadow: var(--shadow);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(15,30,22,.15) 0%, rgba(15,30,22,.55) 55%, rgba(13,26,19,.92) 100%);
}
.hero-inner {
    position: relative; z-index: 2;
    padding: clamp(1.6rem, 5vw, 3.2rem);
    color: var(--cream);
    max-width: 720px;
}
.hero-eyebrow { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; color: var(--sand-soft); margin-bottom: .8rem; }
.hero h1 { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .lead { font-size: clamp(1rem, 2.5vw, 1.25rem); color: #ece6da; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.8rem; }
.hero .button.ghost { color: var(--cream); }
.hero .button.ghost:hover { background: var(--cream); color: var(--forest); }

.hero-amenities {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: .6rem .8rem;
}
.hero-amenities li {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
    padding: .45rem .9rem; border-radius: 100px;
    font-size: .9rem; font-weight: 550; color: var(--cream);
}
.amenity-ico { color: var(--sand-soft); font-size: 1rem; }

/* ---------- Sections ---------- */
.section {
    max-width: var(--maxw);
    margin: clamp(3rem, 8vw, 5rem) auto 0;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.section-heading { max-width: 640px; margin-bottom: 2rem; }
.section-heading p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.prose p { color: #38453d; }

.info-panel {
    background: var(--forest);
    color: var(--cream);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.info-panel h3 { color: var(--sand-soft); margin-bottom: 1.2rem; }
.contact-list { margin: 0 0 1.5rem; padding: 0; }
.contact-list > div { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list > div:last-child { border-bottom: none; }
.contact-list dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(247,243,234,.6); margin-bottom: .2rem; }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { color: var(--sand-soft); }
.contact-list a:hover { color: var(--white); }

/* ---------- Gallery ---------- */
.gallery { position: relative; }
.gallery-viewport {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #0d1a13;
}
.gallery-track { display: flex; transition: transform .5s var(--ease); }
.gallery-slide {
    flex: 0 0 100%;
    margin: 0;
    position: relative;
    aspect-ratio: 16 / 10;
    background: #0d1a13;
}
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slide figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 2.5rem 1.2rem 1rem;
    background: linear-gradient(180deg, transparent, rgba(13,26,19,.85));
    color: var(--cream); font-size: .92rem; font-weight: 550;
}
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 48px; height: 48px; border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(247,243,234,.92); color: var(--forest);
    font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
    box-shadow: var(--shadow-soft); transition: background .2s, transform .15s;
}
.gallery-arrow:hover { background: var(--sand); transform: translateY(-50%) scale(1.06); }
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-counter {
    position: absolute; top: 14px; right: 14px; z-index: 5;
    background: rgba(13,26,19,.65); color: var(--cream);
    padding: .3rem .8rem; border-radius: 100px; font-size: .8rem; font-weight: 600;
    backdrop-filter: blur(4px);
}
.gallery-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.gallery-dots button {
    width: 10px; height: 10px; padding: 0; border-radius: 50%;
    border: none; cursor: pointer; background: var(--line); transition: all .2s;
}
.gallery-dots button:hover { background: var(--muted); }
.gallery-dots button.active { background: var(--sand); width: 28px; border-radius: 100px; }

/* ---------- Price ---------- */
.price-section { background: var(--cream-2); border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); }
.price-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.price-highlight {
    background: var(--forest); color: var(--cream);
    padding: clamp(1.6rem, 4vw, 2.2rem); border-radius: var(--radius);
    box-shadow: var(--shadow); position: sticky; top: 90px;
}
.price-highlight h3 { color: var(--white); }
.price-highlight p { color: rgba(247,243,234,.75); font-size: .95rem; }
.price-tag {
    display: inline-block; font-size: 2rem; font-weight: 800; color: var(--sand-soft);
    margin-bottom: .5rem;
}
.price-highlight .button { margin-top: 1rem; }
.price-list { list-style: none; margin: 0; padding: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.price-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1rem 1.4rem; border-bottom: 1px solid var(--line);
}
.price-list li:last-child { border-bottom: none; }
.price-list li:nth-child(odd) { background: #fbf8f1; }
.price-list span { color: var(--ink); }
.price-list strong { color: var(--forest); white-space: nowrap; }

/* ---------- Grid two (QR + form) ---------- */
.grid-two { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: stretch; }
.qr-card, .request-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 4vw, 2.2rem);
    box-shadow: var(--shadow-soft);
}
.qr-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.qr-card p { color: var(--muted); font-size: .95rem; }
.qr-frame { background: var(--cream); padding: 14px; border-radius: var(--radius-sm); margin: .5rem 0 1.2rem; box-shadow: inset 0 0 0 1px var(--line); }
#qrImage { width: 200px; height: 200px; }

.request-form label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: .92rem; color: var(--ink); }
.request-form input,
.request-form textarea {
    width: 100%; margin-top: .4rem;
    padding: .8rem 1rem;
    font: inherit; font-weight: 400;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--cream); color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.request-form input:focus,
.request-form textarea:focus {
    outline: none; border-color: var(--moss); background: var(--white);
    box-shadow: 0 0 0 3px rgba(47,107,79,.15);
}
.request-form textarea { resize: vertical; }
.form-hint { color: var(--muted); font-size: .95rem; margin-top: -.4rem; }
.check { display: flex !important; align-items: flex-start; gap: .6rem; font-weight: 400 !important; font-size: .88rem !important; color: var(--muted) !important; }
.check input { width: auto !important; margin: .2rem 0 0 !important; flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 1rem 0 0; font-weight: 600; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: var(--moss); }
.form-status.err { color: #b4452f; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(3.5rem, 8vw, 6rem); background: var(--forest); color: var(--cream); }
.footer-inner {
    max-width: var(--maxw); margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem;
}
.footer-inner .brand-mark { margin-bottom: .8rem; }
.footer-inner p { color: rgba(247,243,234,.8); margin: 0; line-height: 1.5; }
.footer-contacts { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.footer-phone { font-size: 1.3rem; font-weight: 800; color: var(--sand-soft); }
.footer-contacts a { color: rgba(247,243,234,.8); }
.footer-contacts a:hover { color: var(--white); }
.copyright {
    max-width: var(--maxw); margin: 0 auto;
    padding: 1.2rem clamp(1rem, 4vw, 2.5rem);
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .82rem; color: rgba(247,243,234,.55);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 200%);
    width: min(640px, calc(100% - 2rem)); z-index: 150;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    background: var(--forest); color: var(--cream);
    padding: 1rem 1.3rem; border-radius: var(--radius);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.5);
    transition: transform .4s var(--ease);
}
.cookie-banner.show { transform: translate(-50%, 0); }
.cookie-banner p { margin: 0; font-size: .88rem; flex: 1 1 260px; color: rgba(247,243,234,.9); }
.cookie-banner a { color: var(--sand-soft); }

/* ---------- Policy page ---------- */
.policy-page { max-width: 820px; margin: 1.5rem auto 0; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.policy-content { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 5vw, 3rem); box-shadow: var(--shadow-soft); margin-top: 1.5rem; }
.policy-content h1 { color: var(--forest); }
.policy-content h2 { font-size: 1.25rem; margin-top: 1.8rem; }
.policy-content p { color: #38453d; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .split, .price-grid, .grid-two, .faq-list { grid-template-columns: 1fr; }
    .price-highlight { position: static; }
    .main-nav { display: none; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .header-phone span { display: none; }
    .hero { min-height: 70vh; border-radius: 20px; }
    .hero-actions .button { flex: 1 1 100%; }
    .gallery-slide { aspect-ratio: 4 / 3; }
    .gallery-arrow { width: 40px; height: 40px; font-size: 1.4rem; }
    .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Print (QR) ---------- */
@media print {
    .site-header, .breadcrumbs, .hero, #description, #photos, #price, .request-form,
    .site-footer, .cookie-banner, .gallery-arrow, .main-nav { display: none !important; }
    .grid-two { display: block; }
    .qr-card { box-shadow: none; border: none; }
    body { background: #fff; }
}

/* ---------- FAQ ---------- */
.faq-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
    align-items: start;
}
.faq-item {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.faq-item[open] { box-shadow: var(--shadow-soft); border-color: var(--sand); }
.faq-item summary {
    cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 650; color: var(--forest);
    list-style: none; position: relative; padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; color: var(--sand); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--moss); }
.faq-item p { margin: 0; padding: 0 1.3rem 1.2rem; color: #38453d; }
