@import url('https://fonts.googleapis.com/css2?family=Lobster+Two:ital,wght@0,700;1,700&family=Playfair+Display:ital,wght@0,600;1,500;1,600&family=Montserrat:wght@400;500;600;700&display=swap');

/* ===================================================================
   TOKENS — straight from the YANataliya brand guide
   =================================================================== */
:root {
    --cream: #F7EDDA;      /* C:3 M:6 Y:17 K:0  — page background   */
    --gold-light: #F2C77C; /* C:4 M:24 Y:59 K:0 — soft accent        */
    --gold: #D8A93F;       /* C:6 M:29 Y:84 K:12 — secondary accent  */
    --ink: #000000;        /* C:0 M:0 Y:0 K:100 — primary accent/ink */
    --text: #2b1810;
    --text-soft: #6b5a4d;
    --card: #fffbf5;
    --line: rgba(0, 0, 0, 0.12);
    --error: #c0392b;
    --success: #27ae60;

    --font-logo: 'Lobster Two', cursive;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --radius: 10px;
    --shadow: 0 10px 30px rgba(43, 24, 16, 0.08);
    --ease: 250ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; height: 100%; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

h1, h2, h3 { font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--ink); }

/* ===================================================================
   SIGNATURE MOTIF — the diagonal stripe pattern lives inside .hero
   itself (see .hero::before below); a standalone divider version of
   it was tried between sections but created a visible seam where its
   clipped diagonal met the next section, so it was removed.
   =================================================================== */

.one-of-one {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold-light);
    border: 1px solid var(--ink);
    padding: 4px 10px;
    border-radius: 999px;
}
.one-of-one::before { content: '●'; font-size: 8px; color: var(--gold); }

/* ===================================================================
   HEADER
   =================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--card);
    border-bottom: 2px solid var(--ink);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-title {
    font-family: var(--font-logo);
    font-size: 32px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    gap: 28px;
    margin-right: auto;
    margin-left: 40px;
}

.nav-link {
    font-weight: 600;
    font-size: 14.5px;
    text-decoration: none;
    color: var(--text);
    position: relative;
    padding: 4px 0;
    transition: color var(--ease);
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--ink);
    transition: right var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { color: var(--ink); }

.call-btn {
    background: var(--ink);
    color: var(--cream);
    border: none;
    padding: 11px 20px;
    border-radius: 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--ease), transform var(--ease);
}
.call-btn:hover { background: var(--gold); transform: translateY(-1px); }

.burger {
    display: none;
    background: none;
    border: 2px solid var(--ink);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--card);
    border-bottom: 2px solid var(--ink);
    padding: 8px 24px 18px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 12px 0;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 860px) {
    .main-nav, .header-inner .call-btn { display: none; }
    .burger { display: block; }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
    position: relative;
    padding: 84px 24px 70px;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -35deg,
        var(--gold-light) 0 60px,
        transparent 60px 130px
    );
    opacity: 0.35;
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; }

.hero h1 {
    font-size: clamp(34px, 5.4vw, 58px);
    line-height: 1.12;
    margin: 14px 0 18px;
}
.hero p.lead {
    font-size: 17.5px;
    color: var(--text-soft);
    max-width: 560px;
    margin: 0 auto 32px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 26px;
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--ink);
    transition: background var(--ease), color var(--ease), transform var(--ease);
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ===================================================================
   SECTIONS
   =================================================================== */
section.block { padding: 70px 24px; }
.block-head { max-width: 620px; margin: 0 auto 44px; text-align: center; }
.block-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-top: 8px; }
.block-head p { color: var(--text-soft); margin-top: 12px; font-size: 15.5px; }

/* Why-us cards */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.why-card {
    background: var(--card);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}
.why-card .mark {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 26px;
    color: var(--gold);
    margin-bottom: 10px;
    display: block;
}
.why-card h3 { font-size: 19px; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; color: var(--text-soft); }

/* Steps (a genuine 3-step sequence — numbering encodes real order) */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    counter-reset: step;
}
.step { position: relative; padding: 0 24px; text-align: center; }
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    right: -12%;
    width: 24%;
    border-top: 2px dashed var(--gold);
}
.step .num {
    counter-increment: step;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-style: italic; font-size: 20px;
    margin: 0 auto 16px;
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-soft); }

/* ===================================================================
   PRODUCT GRID
   =================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--card);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform var(--ease), box-shadow var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(43,24,16,.14); }

.product-img-wrap { position: relative; }
.product-img {
    width: 100%;
    height: 360px;
    object-fit: contain;
    border-bottom: 2px solid var(--ink);
    background: #f1ece2; /* трохи темніше за --cream, щоб фото з білим фоном не зливалось із рамкою */
}
.product-img-wrap .one-of-one {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--cream);
}

.product-info { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-title { font-family: var(--font-display); font-style: italic; font-size: 19px; }
.product-meta { font-size: 12.5px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; }
.product-price { font-size: 18px; font-weight: 700; margin-top: auto; }

.request-btn {
    background: var(--ink);
    color: var(--cream);
    border: none;
    padding: 12px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background var(--ease), color var(--ease);
}
.request-btn:hover { background: var(--gold); }

.catalog-intro {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
}
.catalog-intro p { color: var(--text-soft); margin-top: 12px; font-size: 15.5px; }

/* ===================================================================
   ПОШУК У КАТАЛОЗІ
   =================================================================== */
.catalog-search-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.search-field {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 420px;
}
.search-field .search-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-soft);
    pointer-events: none;
}
.search-field input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 2px solid var(--ink);
    border-radius: 26px;
    background: var(--card);
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--text);
    outline: none;
    transition: box-shadow var(--ease), border-color var(--ease);
}
.search-field input::placeholder { color: #a99a8a; }
.search-field input:focus { box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
/* Прибираємо системну "хрестик очистити" в різних браузерах — своя стрілка не потрібна, поле й так компактне */
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; }

.catalog-results-count { font-size: 13px; color: var(--text-soft); white-space: nowrap; }

.catalog-load-more-row { text-align: center; margin-top: 40px; }

.hint-empty {
    text-align: center;
    color: var(--text-soft);
    font-size: 15px;
    grid-column: 1 / -1;
    padding: 50px 20px;
}
.hint-empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; font-family: var(--font-display); font-style: italic; }

/* ===================================================================
   MODAL — "Request a call" (no cart, no checkout: this is a boutique
   with unique, one-size pieces — the shop calls back and invites in)
   =================================================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}
.modal.open { display: flex; }

.modal-content {
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 460px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 45px rgba(0,0,0,.32);
}

.close-modal {
    position: absolute;
    top: 14px; right: 18px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: var(--ink);
    line-height: 1;
    background: none;
    border: none;
}
.close-modal:hover { color: var(--gold); }

.modal-title { font-size: 26px; margin-bottom: 6px; }
.modal-sub { font-size: 14px; color: var(--text-soft); margin-bottom: 20px; }

.modal-item-tag {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 18px;
}
.modal-item-tag.show { display: flex; }
.modal-item-tag button {
    background: none; border: none; cursor: pointer;
    font-size: 12px; color: var(--text-soft); text-decoration: underline;
}

.request-form { display: flex; flex-direction: column; gap: 13px; }

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.form-input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.form-input::placeholder { color: #999; }
.form-input.invalid { border-color: var(--error); }
.form-input.valid { border-color: var(--success); }
textarea.form-input { resize: vertical; min-height: 70px; font-family: var(--font-body); }

.submit-btn {
    background: var(--success);
    color: #fff;
    border: none;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15.5px;
    cursor: pointer;
    transition: background var(--ease), opacity var(--ease);
    margin-top: 4px;
}
.submit-btn:hover { background: #219653; }
.submit-btn.disabled { background: #95a5a6; opacity: .55; pointer-events: none; }

.form-note { font-size: 12px; color: var(--text-soft); text-align: center; }

/* ===================================================================
   СТАН "УСПІШНО" У МОДАЛЬНОМУ ВІКНІ — замінює форму одразу після
   надсилання, без затримки, щоб не було враження "зависання"
   =================================================================== */
.modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 4px 4px;
    animation: successPop 320ms cubic-bezier(.34, 1.56, .64, 1);
}
.modal-success[hidden] { display: none; }

.success-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 0 0 6px rgba(39, 174, 96, 0.12);
}

.modal-success .modal-title { margin-bottom: 8px; }
.success-text {
    font-size: 14.5px;
    color: var(--text-soft);
    margin-bottom: 24px;
    max-width: 320px;
    line-height: 1.5;
}

@keyframes successPop {
    from { opacity: 0; transform: translateY(6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .modal-success { animation: none; }
}

/* ===================================================================
   CONTACT PAGE
   =================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-card {
    background: var(--card);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ico {
    width: 38px; height: 38px; flex-shrink: 0;
    border-radius: 50%; background: var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
}
.contact-row h4 { font-size: 14.5px; margin-bottom: 3px; }
.contact-row p, .contact-row a { font-size: 14px; color: var(--text-soft); text-decoration: none; }
.contact-row a:hover { color: var(--ink); text-decoration: underline; }

.map-wrap {
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 320px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 780px) {
    .contact-grid { grid-template-columns: 1fr; }
    .why-grid, .steps { grid-template-columns: 1fr; gap: 32px; }
    .step:not(:last-child)::after { display: none; }
}

/* ===================================================================
   FOOTER
   =================================================================== */
footer {
    text-align: center;
    padding: 46px 24px 34px;
    margin-top: auto;
    border-top: 2px solid var(--ink);
    background: var(--card);
}
.footer-brand { font-family: var(--font-logo); font-size: 26px; color: var(--ink); margin-bottom: 12px; }
.footer-info { font-size: 14.5px; margin-bottom: 14px; font-weight: 500; }
.footer-links { display: flex; justify-content: center; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.footer-links a { font-weight: 600; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; }
.footer-copy { font-size: 12.5px; color: #8a7c6f; }

/* ===================================================================
   TOAST
   =================================================================== */
#toast {
    visibility: hidden;
    min-width: 250px;
    max-width: 90vw;
    background: var(--ink);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 14px 20px;
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
    transition: opacity .3s ease;
}
#toast.show { visibility: visible; }

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

/* ===================================================================
   ПЕРЕМИКАЧ МОВИ
   =================================================================== */
.lang-switch {
    display: flex;
    border: 2px solid var(--ink);
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}
.lang-switch button {
    background: none;
    border: none;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    color: var(--ink);
}
.lang-switch button.active {
    background: var(--ink);
    color: var(--cream);
}
.mobile-nav .lang-switch { margin-top: 10px; align-self: flex-start; }
