/* =========================================================
   Французький баран — стилі
   Палітра: овес/папір, глибокий еспресо, конюшинно-зелений,
   димчаста слива (натяк на «лілову» масть породи)
   ========================================================= */

:root {
    --paper: #F1EAD9;
    --paper-2: #E7DEC7;
    --ink: #33281E;
    --ink-soft: #5B4C3E;
    --clover: #6E7C4F;
    --clover-dark: #52603A;
    --plum: #8B5468;
    --plum-dark: #6E3F50;
    --card: #FBF6EA;
    --line: rgba(51, 40, 30, 0.14);

    --font-display: "Yeseva One", serif;
    --font-body: "Mulish", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --radius: 18px;
    --radius-sm: 10px;
    --wrap: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 400;
    margin: 0 0 .4em;
    color: var(--ink);
}

p {
    margin: 0 0 1em;
}

ul {
    margin: 0;
    padding-left: 1.1em;
}

li {
    margin-bottom: .55em;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 28px;
}

/* faint paper grain texture, purely decorative */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: .5;
    background-image:
        radial-gradient(rgba(51, 40, 30, 0.035) 1px, transparent 1px);
    background-size: 3px 3px;
}

/* ---------- header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(241, 234, 217, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--ink);
}

.brand-ear {
    width: 16px;
    height: 26px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: var(--plum);
    display: inline-block;
    transform: rotate(-18deg);
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink-soft);
    position: relative;
}

.nav a:hover {
    color: var(--plum-dark);
}

.nav a:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--plum-dark);
    outline-offset: 3px;
    border-radius: 4px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 34px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

/* ---------- hero ---------- */
.hero {
    padding: 64px 0 40px;
    position: relative;
    z-index: 1;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    color: var(--clover-dark);
    margin: 0 0 .9em;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
    line-height: 1.02;
    margin-bottom: .35em;
}

.hero-lede {
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 46ch;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin: 28px 0 32px;
    flex-wrap: wrap;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    color: var(--plum-dark);
}

.hero-stats span {
    font-size: .82rem;
    color: var(--ink-soft);
}

.btn {
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    transition: transform .18s ease, background .18s ease;
}

.btn:hover {
    background: var(--plum-dark);
    transform: translateY(-2px);
}

.hero-photo {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px -30px rgba(51, 40, 30, 0.55);
    aspect-ratio: 4/5;
    background: var(--paper-2);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- section shared ---------- */
section {
    padding: 84px 0;
    position: relative;
    z-index: 1;
}

.section-head {
    max-width: 640px;
    margin-bottom: 44px;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

/* ---------- passport ---------- */
.passport {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.passport-card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 8px;
}

.passport-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
}

.passport-grid>div {
    padding: 22px 24px;
    border-bottom: 1px dashed var(--line);
}

.passport-grid>div:nth-child(3n+1) {
    border-right: 1px dashed var(--line);
}

.passport-grid>div:nth-child(3n+2) {
    border-right: 1px dashed var(--line);
}

.passport-grid dt {
    font-family: var(--font-mono);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--clover-dark);
    margin-bottom: 6px;
}

.passport-grid dd {
    margin: 0;
    font-weight: 700;
}

/* ---------- history ---------- */
.history-inner {
    display: block;
}

.history-body {
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 50px;
    align-items: start;
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid var(--plum);
}

.timeline li {
    position: relative;
    padding: 2px 0 30px 30px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--plum);
    border: 3px solid var(--paper);
}

.timeline .year {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--plum-dark);
    display: block;
    margin-bottom: 4px;
}

.timeline p {
    margin: 0;
    color: var(--ink-soft);
}

.history-photo {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    position: sticky;
    top: 100px;
    aspect-ratio: 3/4;
    background: var(--paper-2);
}

.history-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- look / standard ---------- */
.look-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 56px;
}

.look-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 26px;
}

.look-card h3 {
    font-size: 1.15rem;
    margin-bottom: .5em;
    color: var(--plum-dark);
}

.look-card p {
    color: var(--ink-soft);
    font-size: .96rem;
    margin: 0;
}

/* signature element: ear ruler */
.ear-ruler {
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 40px 36px;
}

.ruler-caption {
    font-size: 1.05rem;
    max-width: 50ch;
    color: var(--paper);
    opacity: .92;
}

.ruler-track {
    position: relative;
    height: 10px;
    background: rgba(241, 234, 217, 0.18);
    border-radius: 999px;
    margin: 46px 4px 30px;
}

.ruler-fill {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--clover), var(--plum));
    transform-origin: left;
    animation: growFill 1.4s ease-out both;
}

.ruler-track.in-view .ruler-fill {
    animation-play-state: running;
}

@keyframes growFill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.tick {
    position: absolute;
    top: -6px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--paper);
}

.tick i {
    width: 2px;
    height: 22px;
    background: rgba(241, 234, 217, 0.5);
    display: block;
}

.ruler-note {
    color: rgba(241, 234, 217, 0.7);
    font-size: .88rem;
    margin: 0;
    max-width: 60ch;
}

/* ---------- character ---------- */
.character {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.char-item h3 {
    font-size: 1.05rem;
    color: var(--clover-dark);
    margin-bottom: .4em;
}

.char-item p {
    font-size: .92rem;
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- care tabs ---------- */
.care-tab-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.care-tab-btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .92rem;
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.care-tab-btn.is-active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.care-panel {
    display: none;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 32px;
}

.care-panel.is-active {
    display: block;
}

.care-panel li {
    color: var(--ink-soft);
}

/* ---------- health ---------- */
.health-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.health-item {
    border-left: 3px solid var(--plum);
    padding-left: 18px;
}

.health-item h3 {
    font-size: 1.02rem;
    margin-bottom: .35em;
}

.health-item p {
    font-size: .92rem;
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- fit ---------- */
.fit {
    background: var(--ink);
    color: var(--paper);
}

.fit .section-head p.eyebrow {
    color: #C9B8A8;
}

.fit .section-head h2 {
    color: var(--paper);
}

.fit-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.fit-col {
    background: rgba(241, 234, 217, 0.06);
    border: 1px solid rgba(241, 234, 217, 0.16);
    border-radius: var(--radius);
    padding: 28px 30px;
}

.fit-col h3 {
    font-size: 1.1rem;
    margin-bottom: .6em;
}

.fit-yes h3 {
    color: #A9C08A;
}

.fit-no h3 {
    color: #D79FAF;
}

.fit-col li {
    color: rgba(241, 234, 217, 0.85);
    font-size: .95rem;
}

/* ---------- gallery ---------- */
.gallery-photo {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16/8;
    background: var(--paper-2);
}

.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- faq ---------- */
.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 22px 4px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink);
}

.faq-icon {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--plum);
    transition: transform .2s ease;
    flex: none;
}

.faq-q[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
}

.faq-a p {
    padding: 0 4px 22px;
    color: var(--ink-soft);
    max-width: 70ch;
    margin: 0;
}

/* ---------- footer ---------- */
.site-footer {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    padding: 34px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-inner p {
    margin: 0;
    font-size: .85rem;
    color: var(--ink-soft);
    max-width: 60ch;
}

.to-top {
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}

/* ---------- reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   ADAPTIVE / RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        order: -1;
        aspect-ratio: 16/10;
    }

    .look-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .character-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .health-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-body {
        grid-template-columns: 1fr;
    }

    .history-photo {
        position: static;
        order: -1;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 760px) {
    .wrap {
        padding: 0 20px;
    }

    section {
        padding: 58px 0;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 12px 20px 22px;
        gap: 4px;
        display: none;
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        padding: 10px 0;
        border-bottom: 1px solid var(--line);
    }

    .burger {
        display: flex;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-stats {
        gap: 22px;
    }

    .passport-grid {
        grid-template-columns: 1fr 1fr;
    }

    .passport-grid>div:nth-child(3n+2) {
        border-right: none;
    }

    .passport-grid>div:nth-child(even) {
        border-right: none;
    }

    .passport-grid>div:nth-child(odd) {
        border-right: 1px dashed var(--line);
    }

    .look-grid {
        grid-template-columns: 1fr;
    }

    .character-grid {
        grid-template-columns: 1fr;
    }

    .health-grid {
        grid-template-columns: 1fr;
    }

    .fit-columns {
        grid-template-columns: 1fr;
    }

    .ear-ruler {
        padding: 30px 22px;
    }

    .tick {
        font-size: .72rem;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .passport-grid {
        grid-template-columns: 1fr;
    }

    .passport-grid>div {
        border-right: none !important;
    }
}