/*
Theme Name: Профитрейд
Theme URI: https://profitradecompany.com/
Author: Профитрейд
Description: Современная адаптивная тема: пошив одежды на заказ оптом и поставки материалов для швейного производства. Мобильное меню, кастомизация контактов и текстов, редактируемые секции.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: profitrade
Tags: one-column, custom-logo, custom-menu, translation-ready
*/

/* ============================================================
   Профитрейд — style.css
   Mobile-first design system. Breakpoints: 640 / 760 / 860 / 1000
   ============================================================ */

:root {
    --bg: #f6f4ef;
    --surface: #ffffff;
    --ink: #17251d;
    --muted: #5f6e64;
    --line: #e5e2d9;

    --green-950: #0f231a;
    --green-900: #12291f;
    --green-800: #17402e;
    --green-700: #1e523a;
    --green-100: #e4ede6;

    --gold: #ffd166;
    --gold-600: #f0b429;

    --radius-lg: 24px;
    --radius: 20px;
    --shadow-1: 0 1px 2px rgba(16, 35, 26, .05), 0 8px 24px rgba(16, 35, 26, .06);
    --shadow-2: 0 2px 4px rgba(16, 35, 26, .06), 0 16px 40px rgba(16, 35, 26, .10);

    --header-h: 78px;
    --font: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; }

::selection { background: rgba(255, 209, 102, .5); }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
    background: var(--gold);
    color: #1c2b22;
    box-shadow: 0 10px 24px rgba(240, 180, 41, .28);
}

.btn--primary:hover {
    background: #ffc94d;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(240, 180, 41, .38);
}

.btn--dark {
    background: var(--green-900);
    color: #fff;
}

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

.btn--ghost {
    background: transparent;
    border-color: rgba(20, 40, 30, .25);
    color: var(--ink);
}

.btn--ghost:hover { border-color: var(--green-700); color: var(--green-800); }

.btn--ghost-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.btn--ghost-light:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Header ---------- */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 244, 239, .85);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.header.scrolled {
    background: rgba(246, 244, 239, .96);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px rgba(16, 35, 26, .08);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
    text-decoration: none;
}

.brand__logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.brand__mark {
    flex: none;
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand__text strong {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--ink);
}

.brand__text small {
    margin-top: 2px;
    font-size: 11.5px;
    letter-spacing: .02em;
    color: var(--muted);
}

.brand--footer .brand__mark { width: 62px; height: 62px; }

.brand--old {
    display: inline-flex;
    align-items: center;
}

.brand__old {
    display: block;
    height: 46px;
    width: auto;
    object-fit: contain;
}

.brand--footer .brand__old {
    height: 38px;
}
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: rgba(255, 255, 255, .55); }

.custom-logo-link { display: inline-flex; }

.custom-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header__phone {
    display: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
}

.header__phone:hover { color: var(--green-800); }

.header__cta { display: none; }

.nav { display: none; }

.nav ul,
.mobile-menu__nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav li,
.mobile-menu__nav li {
    position: relative;
    display: flex;
}

.nav .sub-menu,
.mobile-menu__nav .sub-menu { display: none; }

.mobile-menu__nav ul {
    flex-direction: column;
    gap: 2px;
}

/* Burger */

.burger {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .25s ease, opacity .2s ease;
}

.burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */

.mobile-menu {
    display: none;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    padding: 8px 20px 22px;
    box-shadow: 0 24px 48px rgba(16, 35, 26, .14);
}

.mobile-menu.open { display: block; }

.mobile-menu__nav {
    display: grid;
    gap: 2px;
    padding-top: 6px;
}

.mobile-menu__nav a {
    padding: 12px 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-radius: 12px;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a:active { background: var(--green-100); }

.mobile-menu__actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-menu__actions .btn { width: 100%; }

/* ---------- Hero ---------- */

.hero {
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(255, 209, 102, .14), transparent 60%),
        linear-gradient(160deg, #0f231a 0%, #17402e 55%, #12291f 100%);
    color: #fff;
    padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 5vw, 48px);
}

.hero__inner {
    display: grid;
    gap: 44px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 209, 102, .35);
    background: rgba(255, 209, 102, .08);
    border-radius: 999px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

.hero__title {
    margin: 18px 0 16px;
    font-size: clamp(30px, 5.2vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
}

.hero__text {
    margin: 0;
    max-width: 56ch;
    font-size: clamp(15.5px, 1.4vw, 17.5px);
    line-height: 1.65;
    color: rgba(255, 255, 255, .82);
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__media { position: relative; }

.hero__photo {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.hero__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__photo--main { aspect-ratio: 4 / 3; }

.hero__photo--accent {
    width: 58%;
    justify-self: end;
    margin-top: -22%;
    aspect-ratio: 1 / 1;
    border: 5px solid #10251b;
}

.hero__chip {
    position: absolute;
    left: 10px;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-2);
}

.hero__chip strong {
    font-size: 19px;
    font-weight: 800;
    color: var(--green-800);
}

.hero__chip span {
    font-size: 12px;
    color: var(--muted);
}

/* Stats */

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
    margin: clamp(26px, 4vw, 40px) 0 0;
    padding-top: clamp(20px, 3vw, 32px);
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.stats__value {
    margin: 0 0 4px;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    color: var(--gold);
}

.stats__label {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .65);
}

/* ---------- Sections ---------- */

.section { padding: clamp(44px, 6vw, 72px) 0; }

.section--tinted { background: linear-gradient(180deg, #eef2ee, #e6ede8); }

.section--dark {
    background:
        radial-gradient(900px 500px at 90% 0%, rgba(255, 209, 102, .10), transparent 55%),
        linear-gradient(160deg, #0f231a, #17402e);
    color: #fff;
}

.section__head {
    max-width: 720px;
    margin: 0 auto clamp(26px, 4vw, 42px);
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green-700);
}

.eyebrow--light { color: var(--gold); }

.section__title {
    position: relative;
    margin: 0 0 14px;
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.015em;
    color: var(--ink);
}

.section__title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin: 16px 0 0;
    border-radius: 2px;
    background: var(--gold);
}

.section__head .section__title::after { margin-left: auto; margin-right: auto; }

.section__title--light { color: #fff; }

.section__lead {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted);
}

.lead {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--ink);
}

/* ---------- About ---------- */

.about__grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.about__text p {
    margin: 0 0 14px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--muted);
}

.about__text .btn { margin-top: 14px; }

.about__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}

.about__photo {
    width: 100%;
    min-height: 140px;
    object-fit: cover;
    border-radius: 20px;
    background: #e9e6df;
    box-shadow: var(--shadow-1);
}

.about__photo--tall { grid-row: span 2; }

/* ---------- Services ---------- */

.cards-2 {
    display: grid;
    gap: 20px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 30px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}

.service-card__num {
    margin-bottom: 12px;
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    color: rgba(30, 82, 58, .12);
}

.service-card__title {
    margin: 0 0 10px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.service-card__text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.checklist {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--ink);
}

.checklist li::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--green-100);
}

.checklist li::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 6px;
    width: 7px;
    height: 4px;
    border-left: 2px solid var(--green-700);
    border-bottom: 2px solid var(--green-700);
    transform: rotate(-45deg);
}

.checklist--light li { color: rgba(255, 255, 255, .9); }
.checklist--light li::before { background: rgba(255, 209, 102, .15); }
.checklist--light li::after { border-color: var(--gold); }

.service-card__link {
    margin-top: auto;
    align-self: flex-start;
    font-size: 15px;
    font-weight: 700;
    color: var(--green-700);
    text-decoration: none;
}

.service-card__link:hover { color: var(--green-800); text-decoration: underline; }

/* ---------- Sewing ---------- */

.sewing-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.sewing-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    transition: transform .25s ease, box-shadow .25s ease;
}

.sewing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

.sewing-card__icon {
    width: 64px;
    height: 64px;
    padding: 7px;
    object-fit: contain;
    background: var(--green-100);
    border-radius: 16px;
}

.sewing-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.sewing-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.sewing-card--cta {
    background: linear-gradient(160deg, #17402e, #0f231a);
    border: none;
    justify-content: flex-start;
}

.sewing-card--cta h3 { color: #fff; }
.sewing-card--cta p { color: rgba(255, 255, 255, .7); }
.sewing-card--cta .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Materials ---------- */

.materials__grid {
    display: grid;
    gap: 36px;
    align-items: start;
}

.materials__text {
    margin: 0 0 14px;
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .75);
}

.materials__grid .btn { margin-top: 12px; }

.materials__list {
    padding: 30px 28px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
}

.materials__list-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

/* ---------- Advantages ---------- */

.adv-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.adv-card {
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}

.adv-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 16.5px;
    font-weight: 800;
}

.adv-card h3::before {
    content: "";
    flex: none;
    width: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--gold);
}

.adv-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
}

/* ---------- Steps ---------- */

.steps {
    position: relative;
    display: grid;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    position: relative;
    padding: 30px 22px 26px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}

.step__num {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold);
    color: #1c2b22;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(240, 180, 41, .4);
}

.step__icon {
    display: block;
    width: 60px;
    height: 60px;
    margin: 4px auto 12px;
    object-fit: contain;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 800;
}

.step p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

/* ---------- CTA ---------- */

.cta {
    padding: clamp(40px, 6vw, 56px) 0;
    background:
        radial-gradient(900px 400px at 15% 0%, rgba(255, 209, 102, .12), transparent 55%),
        linear-gradient(140deg, #0f231a, #17402e);
    color: #fff;
}

.cta__inner {
    display: grid;
    gap: 26px;
    align-items: center;
}

.cta__title {
    margin: 0 0 10px;
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: -.01em;
}

.cta__text {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .75);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Contacts ---------- */

.contacts-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.contact-card {
    padding: 24px 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}

.contact-card__label {
    display: block;
    margin-bottom: 10px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-700);
}

.contact-card__value {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink);
}

.contact-card__value a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-card__value a:hover { color: var(--green-700); text-decoration: underline; }

.contact-card__hint {
    font-size: 13px;
    color: var(--muted);
}

.socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.socials__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--green-100);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: transform .2s ease, background .2s ease;
}

.socials__link:hover {
    transform: translateY(-3px);
    background: #d8e6dc;
}

.socials__link img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* ---------- Footer ---------- */

.footer {
    background: #0f231a;
    color: rgba(255, 255, 255, .75);
}

.footer__inner {
    display: grid;
    gap: 30px;
    padding-top: 40px;
    padding-bottom: 32px;
}

.footer__brand p {
    max-width: 34ch;
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .55);
}

.brand--footer .brand__logo,
.brand--footer .custom-logo {
    padding: 8px 12px;
    background: #fff;
    border-radius: 12px;
}

.footer__nav,
.footer__contacts {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer__nav a,
.footer__contacts a {
    color: rgba(255, 255, 255, .75);
    font-size: 14.5px;
    text-decoration: none;
}

.footer__nav a:hover,
.footer__contacts a:hover { color: var(--gold); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
}

.footer__bottom a {
    color: rgba(255, 255, 255, .45);
    text-decoration: none;
}

.footer__bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- Simple content pages ---------- */

.page { padding: clamp(40px, 6vw, 60px) 0; }

.page__inner { max-width: 800px; }

.page__title {
    margin: 0 0 28px;
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 800;
    letter-spacing: -.015em;
}

.page__title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 16px;
    border-radius: 2px;
    background: var(--gold);
}

.policy h2 {
    margin: 34px 0 12px;
    font-size: 19px;
    font-weight: 800;
    color: var(--green-800);
}

.policy p {
    margin: 0 0 14px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #3c4a41;
}

.policy h3 {
    margin: 26px 0 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--green-800);
}

.policy ul,
.policy ol {
    margin: 0 0 14px;
    padding-left: 22px;
    color: #3c4a41;
}

.policy li {
    margin-bottom: 6px;
    font-size: 15.5px;
    line-height: 1.65;
}

.post-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
}

/* ---------- Header cart ---------- */

.header__cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
}

.header__cart:hover { border-color: var(--green-700); color: var(--green-800); }

.header__cart svg { width: 22px; height: 22px; }

.header__cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--gold);
    color: #1c2b22;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(240, 180, 41, .4);
}

/* ---------- Shop (WooCommerce) ---------- */

.wc-main { padding: clamp(40px, 6vw, 60px) 0; }

.wc-title {
    margin: 0 0 28px;
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 800;
    letter-spacing: -.015em;
}

.wc-title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 16px;
    border-radius: 2px;
    background: var(--gold);
}

.woocommerce-breadcrumb {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--muted);
}

.woocommerce-breadcrumb a { color: var(--muted); text-decoration: none; }
.woocommerce-breadcrumb a:hover { color: var(--green-700); }

.woocommerce-result-count {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--muted);
}

.woocommerce-ordering { margin: 0 0 20px; }

.woocommerce-ordering select {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
}

/* WC buttons */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce input[type="submit"],
.woocommerce a.button.add_to_cart_button,
.woocommerce a.button.wc-forward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--gold);
    color: #1c2b22;
    font-family: var(--font);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce input[type="submit"]:hover {
    background: #ffc94d;
    transform: translateY(-2px);
}

.woocommerce a.button:disabled,
.woocommerce a.button.disabled { opacity: .55; cursor: not-allowed; transform: none; }

.woocommerce a.checkout-button {
    background: var(--green-900);
    color: #fff;
}

.woocommerce a.checkout-button:hover { background: var(--green-800); }

.woocommerce .single_add_to_cart_button { width: 100%; }

/* Product grid */

.woocommerce ul.products,
.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products li.product {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    width: auto;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    transition: transform .25s ease, box-shadow .25s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

.onsale {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--gold);
    color: #1c2b22;
    font-size: 12px;
    font-weight: 800;
}

.wc-card-img {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef0ec;
}

.wc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.woocommerce ul.products li.product:hover .wc-card-img img { transform: scale(1.04); }

.woocommerce ul.products li.product .wc-card-title {
    margin: 14px 16px 6px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
}

.woocommerce ul.products li.product .wc-card-title a {
    color: var(--ink);
    text-decoration: none;
}

.woocommerce ul.products li.product .wc-card-title a:hover { color: var(--green-800); }

.woocommerce ul.products li.product .wc-card-text {
    margin: 0 16px 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.woocommerce ul.products li.product .wc-card-price,
.woocommerce ul.products li.product .price {
    margin: 0 16px 12px;
    font-size: 17px;
    font-weight: 800;
    color: var(--green-800);
}

.woocommerce ul.products li.product .price del {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.woocommerce ul.products li.product .price ins { text-decoration: none; }

.woocommerce ul.products li.product .wc-card-actions {
    margin: 0 16px 16px;
    align-self: flex-start;
}

/* Unscoped card styles (work in any markup) */

.wc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    transition: transform .25s ease, box-shadow .25s ease;
    list-style: none;
}

.wc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

.wc-card .wc-card-title {
    margin: 14px 16px 6px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.4;
}

.wc-card .wc-card-title a { color: var(--ink); text-decoration: none; }
.wc-card .wc-card-title a:hover { color: var(--green-800); }

.wc-card .wc-card-text {
    margin: 0 16px 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.wc-card .wc-card-price,
.wc-card .price {
    margin: 0 16px 12px;
    font-size: 17px;
    font-weight: 800;
    color: var(--green-800);
}

.wc-card .wc-card-actions {
    margin: 0 16px 16px;
    align-self: flex-start;
}

/* Shop page (custom) */

.wc-pagehead__lead {
    max-width: 640px;
    margin: -14px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.wc-section-block { margin-top: 34px; }

.wc-section-block__title {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.shop-cats {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.shop-cat {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
    color: var(--ink);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}

.shop-cat:hover {
    transform: translateY(-2px);
    border-color: var(--green-700);
}

.shop-cat__img {
    flex: none;
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef0ec;
}

.shop-cat__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-cat__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.shop-cat__count {
    font-weight: 600;
    color: var(--muted);
}

.products-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (max-width: 560px) {
    .products-grid { grid-template-columns: 1fr; }
    .shop-cat__img { width: 54px; height: 54px; }
}

@media (min-width: 700px) {
    .shop-cats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    margin: 0;
    padding: 11px 18px;
    font-size: 14px;
}

/* Single product */

.wc-single {
    display: grid;
    gap: 32px;
    align-items: start;
}

.wc-single__gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
}

.wc-single__summary .product_title {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.01em;
}

.wc-single__summary .price {
    display: block;
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 800;
    color: var(--green-800);
}

.wc-single__summary .price del {
    font-size: 17px;
    font-weight: 500;
    color: var(--muted);
}

.wc-single__summary .price ins { text-decoration: none; }

.wc-single__summary .woocommerce-product-details__short-description,
.wc-single__summary p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.wc-single__summary .variations select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    margin-bottom: 12px;
}

.wc-single__form,
.wc-single__summary form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.woocommerce .quantity { display: inline-flex; }

.woocommerce .quantity .qty {
    width: 74px;
    padding: 12px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    text-align: center;
}

.wc-single__description {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.wc-single__description h3 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 800;
}

.wc-single__description p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #3c4a41;
}

/* Cart */

.wc-table {
    width: 100%;
    border-collapse: collapse;
}

.wc-table th {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.wc-table td {
    padding: 16px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    font-size: 14.5px;
    color: var(--ink);
}

.wc-table__thumb { width: 64px; }

.wc-table__thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    background: #eef0ec;
}

.wc-table__name { font-weight: 600; }

.wc-table__qty .qty { width: 70px; }

.wc-table__total { font-weight: 700; white-space: nowrap; }

.wc-table__remove-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
}

.wc-table__remove-link:hover {
    border-color: #c0392b;
    color: #c0392b;
    background: #fdecec;
}

.wc-table__coupon { text-align: right; }

.wc-cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.woocommerce .cart .coupon { margin-bottom: 14px; }

.woocommerce .cart .coupon .input-text {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-family: var(--font);
    font-size: 15px;
    background: var(--surface);
    color: var(--ink);
}

/* Checkout */

.wc-checkout {
    display: grid;
    gap: 32px;
    align-items: start;
}

.wc-checkout__totals {
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}

.wc-checkout__totals h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 9px 6px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 14px;
    color: var(--ink);
}

.wc-checkout__fields .form-row { margin-bottom: 14px; }

.wc-checkout__fields label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.wc-checkout__fields input[type="text"],
.wc-checkout__fields input[type="email"],
.wc-checkout__fields input[type="tel"],
.wc-checkout__fields input[type="password"],
.wc-checkout__fields select,
.wc-checkout__fields textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
}

.wc-checkout__fields input[type="checkbox"],
.wc-checkout__fields input[type="radio"] { width: auto; }

.wc-checkout__fields .required { color: #c0392b; }

.wc-checkout__fields .form-row-wide { width: 100%; }

/* Notices */

.woocommerce-message,
.woocommerce-info {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #cfe0d4;
    border-radius: 14px;
    background: var(--green-100);
    color: var(--ink);
    font-size: 14.5px;
}

.woocommerce-error {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #f2c9c9;
    border-radius: 14px;
    background: #fdecec;
    color: var(--ink);
    font-size: 14.5px;
}

/* Pagination */

.woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin-right: 6px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-pagination .page-numbers.current {
    background: var(--green-900);
    border-color: var(--green-900);
    color: #fff;
}

.woocommerce-pagination .page-numbers.next:hover,
.woocommerce-pagination .page-numbers.prev:hover {
    border-color: var(--green-700);
    color: var(--green-800);
}

/* ---------- Catalog page (no-WC fallback) ---------- */

.katalog__shoplink {
    margin: 0 0 30px;
}

.katalog__note {
    max-width: 720px;
    margin: 0 auto 30px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 14px;
    background: var(--surface);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
}

.katalog-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

.katalog-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}

.katalog-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.katalog-card p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.katalog-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.katalog-card__actions .btn {
    padding: 11px 18px;
    font-size: 14px;
}

.katalog-card h3 a {
    color: var(--ink);
    text-decoration: none;
}

.katalog-card h3 a:hover { color: var(--green-700); }

.katalog-card__img {
    display: block;
    margin-bottom: 4px;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f5f3;
}

.katalog-card__img img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.katalog-form {
    margin-top: 34px;
    padding: 30px 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-1);
}

.katalog-form__head {
    max-width: 640px;
    margin-bottom: 20px;
}

.katalog-form__head h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.katalog-form__head p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
}

.katalog-form__body form {
    max-width: 560px;
}

/* wpforms — базовая адаптация под тему */
.wpforms-form .wpforms-field input[type="text"],
.wpforms-form .wpforms-field input[type="email"],
.wpforms-form .wpforms-field input[type="tel"],
.wpforms-form .wpforms-field textarea,
.wpforms-form .wpforms-field select {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
}

.wpforms-form .wpforms-field input:focus,
.wpforms-form .wpforms-field textarea:focus {
    border-color: var(--green-700);
    box-shadow: 0 0 0 3px rgba(31, 82, 58, .12);
}

.wpforms-form .wpforms-field-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}

.wpforms-form .wpforms-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--green-800);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

.wpforms-form .wpforms-submit:hover { background: var(--green-900, #0d1f16); }

/* WooCommerce — кнопка «В корзину» в карточках */
.woocommerce-loop-add-to-cart {
    margin: 0;
}

.wc-card-actions .single_add_to_cart_button,
.wc-card-actions .button.alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--green-800);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: none;
}

.wc-card-actions .single_add_to_cart_button:hover,
.wc-card-actions .button.alt:hover {
    background: var(--green-900, #0d1f16);
}

.wc-card-actions .quantity,
.wc-card-actions .qty {
    width: 64px;
    margin-right: 8px;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

@media (max-width: 639px) {
    .wc-table__price--hide-sm { display: none; }
}

@media (max-width: 560px) {
    .brand__mark { width: 52px; height: 52px; }
    .brand__text strong { font-size: 16px; }
    .brand__text small { display: none; }
    .brand__old { height: 38px; }
    .brand--footer .brand__old { height: 34px; }
}

/* ============================================================
   Breakpoints
   ============================================================ */

@media (min-width: 640px) {
    .sewing-grid { grid-template-columns: repeat(2, 1fr); }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .contacts-grid { grid-template-columns: repeat(2, 1fr); }
    .katalog-grid { grid-template-columns: repeat(2, 1fr); }
    .wc-table__price--hide-sm { display: table-cell; }
}

@media (min-width: 760px) {
    .header__phone { display: inline; }
    .stats { grid-template-columns: repeat(4, 1fr); gap: 20px 28px; }
}

@media (min-width: 860px) {
    .cards-2 { grid-template-columns: repeat(2, 1fr); gap: 28px; }

    .materials__grid {
        grid-template-columns: 1.1fr .9fr;
        gap: 48px;
    }

    .cta__inner {
        grid-template-columns: 1.2fr .8fr;
        justify-items: start;
    }

    .cta__actions { justify-items: end; }

    .steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
        padding-top: 16px;
    }

    .steps::before {
        content: "";
        position: absolute;
        top: 1px;
        left: 12.5%;
        right: 12.5%;
        height: 2px;
        background: linear-gradient(90deg, transparent, rgba(240, 180, 41, .7) 15%, rgba(240, 180, 41, .7) 85%, transparent);
    }

    .footer__inner { grid-template-columns: 1.2fr .8fr 1fr; }
}

@media (min-width: 1000px) {
    .nav {
        display: flex;
        gap: 26px;
        margin-left: 10px;
    }

    .nav ul {
        flex-direction: row;
        gap: 26px;
    }

    .nav a {
        position: relative;
        padding: 6px 0;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: .01em;
        color: var(--ink);
        text-decoration: none;
    }

    .nav a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        border-radius: 2px;
        background: var(--gold);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s ease;
    }

    .nav a:hover::after,
    .nav a.active::after { transform: scaleX(1); }

    .nav a.active { color: var(--green-800); }

    .header__cta {
        display: inline-flex;
        padding: 12px 20px;
    }

    .burger { display: none; }
    .mobile-menu { display: none !important; }

    .hero__inner {
        grid-template-columns: 1.05fr .95fr;
        gap: 56px;
    }

    .about__grid {
        grid-template-columns: 1.05fr .95fr;
        gap: 56px;
    }

    .sewing-grid { grid-template-columns: repeat(3, 1fr); }
    .adv-grid { grid-template-columns: repeat(3, 1fr); }
    .contacts-grid { grid-template-columns: 1fr 1fr 1.6fr 1fr; }
    .woocommerce ul.products,
    .products { grid-template-columns: repeat(3, 1fr); }
    .katalog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
    .wc-single { grid-template-columns: 1fr 1fr; gap: 48px; }
    .wc-checkout { grid-template-columns: 1.2fr .8fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
