/* Homepage search, product/service catalog split, and reference-inspired merchandising. */
:root {
    /* Main storefront color: change this one value to recolor the site. */
    /*--accent: #BBACAF; /первый*/
    /*--accent: #aaa1a1; //второй*/
    /*--accent: #7b6f6f; //третий*/
    --accent: #d5cdcd; /* fourth palette option */
    --accent-hover: color-mix(in srgb, var(--accent) 86%, #383438);
    --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent);
    --pink-wash: color-mix(in srgb, var(--accent) 22%, transparent);
    --rose-pale: color-mix(in srgb, var(--accent) 30%, transparent);
    --rose-ink: #514b4d;
}
.home-search {
    margin: 28px 0 0;
    padding: clamp(28px, 5vw, 58px) clamp(20px, 5vw, 64px) 24px;
    background: linear-gradient(120deg, #f6f5f4, #eeedec 62%, #f8f7f6);
}
.header { top:0; }
.header .container { max-width:1480px; }
.brand { flex:none; }
.brand-logo { width:170px; height:68px; padding:0; background:transparent; box-shadow:none; object-fit:contain; }
.header-nav { font-size:12px; }
.header-nav a { letter-spacing:.015em; }
.header-nav a.header-catalog-button,
.header-nav a.header-catalog-button:visited,
.header-nav a.header-catalog-button:hover,
.header-nav a.header-catalog-button:focus-visible {
    height:44px;
    min-height:44px;
    padding:0 16px;
    color:#3e393a;
    background:var(--accent);
    font-weight:500;
    letter-spacing:0;
    text-transform:none;
}
.header-nav a.header-catalog-button:hover { color:#3e393a; background:var(--accent-hover); }
.announcement { display:none; }
.search-overline { font-size: 10px; letter-spacing: .16em; color: #686365; font-weight: 700; }
.home-search h1 { margin: 12px 0 26px; max-width: 760px; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.065em; font-weight: 600; }
.home-search-input { display:flex; align-items:center; gap:14px; padding: 7px 10px 7px 20px; max-width: 900px; min-height: 66px; background:#fff; border:1px solid #dedcdb; box-shadow:0 8px 25px #4d39440d; }
.home-search-input > svg { flex:none; color:var(--accent); }
.home-search-input input { min-width:0; flex:1; height:48px; border:0; outline:0; color:var(--text); background:transparent; font-size:15px; }
.home-search-input input::placeholder { color:#968b91; }
.home-search-input button { width:48px; height:48px; border:0; color:#3e393a; background:var(--accent); display:grid; place-items:center; cursor:pointer; }
.home-search-input button:hover { background:var(--accent-hover); }
.home-search-options { max-width:900px; display:flex; align-items:center; gap:10px; padding-top:12px; }
.home-search-options .sort-select { min-width:190px; background-color:#ffffffa6; }
.catalog-shortcuts { display:flex; gap:12px; padding-top:25px; }
.catalog-shortcuts a { display:inline-flex; align-items:center; gap:12px; border:1px solid #dedcdb; padding:9px 14px; color:#504c4d; font-size:12px; transition:all .18s ease; }
.catalog-shortcuts a:hover { background:#fff; border-color:#bbb8b8; }
.catalog-shortcuts span { color:#686365; font-size:10px; }
.hero { padding-top:32px; grid-template-columns:minmax(0, 1fr); gap:0; }
.hero-main-image { position:relative; display:block; width:100%; min-height:0; aspect-ratio:1201/620; overflow:hidden; background:#eeedec; box-shadow:none; color:#fff; }
.hero-main-image::after { position:absolute; inset:0; content:""; background:linear-gradient(90deg,rgba(236,235,234,.97) 0%,rgba(236,235,234,.91) 34%,rgba(236,235,234,.55) 52%,rgba(236,235,234,0) 76%); }
.hero-main-image img { width:100%; height:100%; object-fit:cover; transition:transform .65s ease; }
.hero-main-image:hover { color:#fff; }
.hero-main-image:hover img { transform:scale(1.025); }
.hero-main-copy { position:absolute; z-index:1; inset:0 auto 0 0; width:min(58%,680px); display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:clamp(24px,5vw,68px); color:#403d3e; }
.hero-main-eyebrow { font-size:10px; font-weight:700; letter-spacing:.16em; color:#656163; }
.hero-main-title { display:block; margin-top:18px; max-width:620px; font-size:clamp(30px,5.2vw,68px); line-height:1.02; font-weight:600; letter-spacing:-.065em; }
.hero-main-description { display:block; max-width:450px; margin-top:18px; color:#5c595a; font-size:clamp(12px,1.35vw,16px); line-height:1.6; }
.hero-main-action { display:inline-flex; align-items:center; gap:14px; margin-top:26px; padding:12px 16px; background:var(--accent); color:#3e393a; font-size:11px; font-weight:600; }
.hero-main-action > span { font-size:17px; line-height:1; }
.work-gallery { padding:52px 0 24px; }
.work-gallery-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.work-gallery-heading h2 { margin-top:5px; font-size:clamp(26px, 3vw, 38px); line-height:1.1; letter-spacing:-.05em; }
.work-gallery-heading > span { color:var(--text-muted); font-size:12px; }
.hero-carousel { min-height:500px; aspect-ratio:2.1/1; background:#eeedec; }
.hero-slides { position:absolute; inset:0; }
.hero-slide { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .65s ease; }
.hero-slide.is-active { opacity:1; }
.hero-carousel .hero-badge { z-index:2; }
.hero-carousel-dots { position:absolute; z-index:3; left:18px; bottom:16px; display:flex; gap:7px; }
.hero-carousel-dots button { width:8px; height:8px; padding:0; border:1px solid #fff; border-radius:50%; background:#ffffff80; cursor:pointer; transition:all .2s ease; }
.hero-carousel-dots button.is-active { width:24px; border-radius:6px; background:#fff; }
.popular-section { padding:34px 0 46px; }
.popular-section + .popular-section { border-top:1px solid var(--line); }
.popular-section .section-head { align-items:end; }
.popular-section .section-head h2 { margin-top:5px; }
.popular-section .section-head > a { font-size:12px; color:var(--accent); border-bottom:1px solid #d7c3ce; padding-bottom:4px; }
.popular-section .section-head > a:hover { color:var(--accent-hover); border-color:var(--accent); }
.popular-empty { grid-column:1/-1; padding:22px 0; color:var(--text-muted); font-size:14px; }
.contacts-page { padding:54px 0 84px; }
.contacts-page > h1 { margin-top:8px; font-size:clamp(40px,6vw,68px); line-height:1; letter-spacing:-.07em; }
.contacts-intro { max-width:580px; margin-top:16px; color:var(--text-muted); font-size:15px; line-height:1.7; }
.contacts-page-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr); gap:24px; margin-top:42px; }
.contacts-main-card, .contacts-side-card { padding:clamp(24px,4vw,42px); background:#f0efee; }
.contacts-page-item { padding:19px 0; border-bottom:1px solid #dedcdb; }
.contacts-page-item:first-child { padding-top:0; }
.contacts-page-item:last-of-type { border-bottom:0; }
.contacts-label { display:block; margin-bottom:8px; color:var(--text-muted); font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.contacts-value { color:var(--text); font-size:17px; line-height:1.45; font-weight:600; overflow-wrap:anywhere; }
a.contacts-value:hover { color:var(--accent); }
.contacts-phone { font-size:clamp(23px,3vw,34px); letter-spacing:-.04em; }
.contacts-address { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.contacts-address svg { flex:none; color:var(--accent); }
.contacts-map-hint { color:var(--accent); font-size:10px; font-weight:500; }
.contacts-empty { color:var(--text-muted); font-size:13px; }
.site-notice { max-width: 80%;width: calc(100% - max(16px, 5%));margin-left: auto;margin-right: auto;display: flex;align-items: center;gap: 12px;padding: 13px 17px;border: 1px solid #d9dadd;background: #f0f1f2;color: #45484c;}
.site-notice p { margin:0; font-size:16px; line-height:1.5; }
.site-notice-icon { width:25px; height:25px; flex:none; display:grid; place-items:center; }
.site-notice-icon svg { display:block; width:22px; height:22px; }
.site-notice--warning { border-color:#e4d8c1; background:#f5f1e9; color:#625744; }
.site-notice--error { border-color:#e2d0d0; background:#CD5C5C; color: #FFFFE0; }
.contacts-side-card { background:#fff; border:1px solid var(--line); }
.contacts-side-mark { width:48px; height:48px; display:grid; place-items:center; border-radius:50%; background:var(--accent); color:white; font-weight:700; }
.contacts-side-card h2 { margin-top:20px; font-size:23px; letter-spacing:-.05em; }
.contacts-side-card p { margin:10px 0 20px; color:var(--text-muted); font-size:13px; line-height:1.6; }
.contacts-side-card .btn { display:flex; width:100%; }
.contacts-catalog-link { display:block; margin-top:18px; color:var(--accent); font-size:12px; font-weight:600; }
.contacts-catalog-link:hover { color:var(--accent-hover); }
.account-auth { width:min(100%,480px); margin:54px auto 80px; padding:clamp(24px,5vw,42px); background:#fff; border:1px solid var(--line); }
.account-auth-tabs { width:min(100%,500px); }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:24px 0 22px; padding:4px; background:#f1efef; }
.auth-tabs button { min-height:40px; border:0; background:transparent; color:var(--text-muted); font-size:12px; font-weight:600; cursor:pointer; }
.auth-tabs button.is-active { background:#fff; color:var(--text); box-shadow:0 1px 4px #28212612; }
.account-auth-tabs [role="tabpanel"][hidden] { display:none; }
.account-auth h1, .account-heading h1 { margin-top:8px; font-size:clamp(32px,5vw,44px); line-height:1.08; letter-spacing:-.055em; }
.account-auth > p { margin:10px 0 24px; color:var(--text-muted); font-size:13px; line-height:1.6; }
.account-auth form .btn { width:100%; }
.account-auth .field small { display:block; margin-top:5px; color:var(--text-muted); font-size:10px; }
.account-remember { display:flex; align-items:center; gap:8px; margin:0 0 18px; color:var(--text-muted); font-size:12px; }
.account-auth-switch { margin-top:20px !important; font-size:12px !important; }
.account-auth-switch a { color:var(--accent-hover); text-decoration:underline; text-underline-offset:3px; }
.account-page { width:100%; max-width:100%; margin:0; padding:48px 0 88px; }
.account-hero { margin-bottom:20px; }
.account-hero { position:relative; display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:150px; padding:26px clamp(22px,3vw,38px); overflow:hidden; background:linear-gradient(105deg,#f1edef 0%,#faf9f8 74%,#eeeceb 100%); border:1px solid #e3dfe0; }
.account-hero::after { content:""; position:absolute; width:180px; height:180px; right:15%; top:-125px; border:1px solid #ded8da; border-radius:50%; box-shadow:0 0 0 22px #ffffff35; pointer-events:none; }
.account-hero-identity { position:relative; z-index:1; display:flex; align-items:center; gap:19px; }
.account-profile-avatar { width:54px; height:54px; flex:none; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:#3e393a; font-size:21px; font-weight:700; box-shadow:none; }
.account-eyebrow { color:#81747a; font-size:9px; font-weight:700; letter-spacing:.15em; }
.account-heading h1, .account-hero h1 { margin:5px 0 3px; font-size:clamp(27px,4vw,38px); line-height:1.08; letter-spacing:-.06em; }
.account-hero p { color:var(--text-muted); font-size:12px; }
.account-logout { position:relative; z-index:1; border:1px solid #d9d0d3; padding:9px 13px; background:#ffffff9c; color:#62595e; font-size:11px; cursor:pointer; }
.account-logout:hover { background:#fff; color:var(--text); }
.account-hero-note { position:absolute; right:clamp(22px,4vw,44px); bottom:18px; display:flex; align-items:center; gap:7px; color:#81777c; font-size:10px; }
.account-online-dot { width:6px; height:6px; border-radius:50%; background:#9da58e; }
.account-summary { display:grid; grid-template-columns:1fr auto; align-items:center; gap:20px; margin:12px 0 48px; padding:14px 20px; background:#fff; border:1px solid var(--line); }
.account-summary-item { display:grid; gap:4px; }
.account-summary-item > span { color:var(--text-muted); font-size:9px; letter-spacing:.09em; text-transform:uppercase; }
.account-summary-item > strong { font-size:14px; font-weight:600; }
.account-summary-link { padding-left:18px; border-left:1px solid var(--line); color:var(--accent-hover); font-size:11px; font-weight:600; white-space:nowrap; }
.account-summary-link span { margin-left:5px; }
.account-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr); gap:clamp(22px,3vw,38px); align-items:start; }
.account-orders { order:1; }
.account-settings { order:2; padding:22px; background:#fff; border:1px solid var(--line); }
.account-section-heading { margin-bottom:18px; }
.account-section-heading h2 { margin-top:5px; font-size:21px; letter-spacing:-.04em; }
.account-contact-row { display:flex; align-items:center; gap:11px; padding:11px 0; border-top:1px solid #eeebec; }
.account-contact-icon { width:30px; height:30px; flex:none; display:grid; place-items:center; border-radius:50%; background:#f1edef; color:#786d73; font-size:13px; }
.account-contact-row > div { min-width:0; display:grid; gap:3px; }
.account-contact-row small { color:var(--text-muted); font-size:9px; }
.account-contact-row strong { overflow-wrap:anywhere; font-size:11px; font-weight:600; }
.account-edit-panel { margin-top:12px; border-top:1px solid #eeebec; }
.account-edit-panel summary { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:14px 0 4px; color:#585156; font-size:11px; font-weight:600; cursor:pointer; list-style:none; }
.account-edit-panel summary::-webkit-details-marker { display:none; }
.account-edit-chevron { flex:none; color:#81767c; transition:transform .2s ease; }
.account-edit-panel[open] .account-edit-chevron { transform:rotate(180deg); }
.account-profile-form { padding:11px 0 4px; }
.account-profile-form .field { margin-bottom:11px; }
.account-profile-form .field label { font-size:10px; }
.account-profile-form .field input { padding:10px 11px; font-size:12px; }
.account-profile-form .field small { display:block; margin-top:5px; color:var(--text-muted); font-size:9px; }
.account-profile-form .btn { width:100%; min-height:40px; font-size:10px; }
.account-orders { display:grid; gap:12px; }
.account-orders-heading { display:flex; justify-content:space-between; align-items:end; margin-bottom:5px; }
.account-orders-heading h2 { margin-top:5px; font-size:25px; letter-spacing:-.05em; }
.account-orders-count { color:var(--text-muted); font-size:10px; }
.account-order { padding:19px 21px; background:#fff; border:1px solid var(--line); transition:border-color .18s ease,box-shadow .18s ease; }
.account-order:hover { border-color:#d4c8ce; box-shadow:0 5px 18px #30232a09; }
.account-order-topline { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.account-order-date { color:var(--text-muted); font-size:10px; }
.account-order-status { padding:5px 9px; background:#efeded; color:#5e595b; font-size:9px; }
.account-order-number { display:inline-block; margin-top:9px; font-size:14px; font-weight:700; letter-spacing:-.02em; }
.account-order-number span { margin-left:3px; color:var(--accent-hover); font-size:12px; }
.account-order-summary { margin-top:6px; color:#777176; font-size:11px; line-height:1.5; }
.account-order-bottom { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:12px; padding-top:11px; border-top:1px solid #efeded; color:var(--text-muted); font-size:10px; }
.account-order-bottom strong { color:var(--text); font-size:14px; }
.account-empty { padding:46px 24px; text-align:center; background:#fff; border:1px solid var(--line); }
.account-empty-icon { color:var(--accent-hover); font-size:26px; }
.account-empty h3 { margin-top:8px; font-size:20px; letter-spacing:-.04em; }
.account-empty p { margin:8px 0 20px; color:var(--text-muted); font-size:13px; }
.account-pagination { margin-top:22px; }
.account-pagination-nav { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:14px 0; border-top:1px solid var(--line); }
.account-pagination-range { margin:0; color:var(--text-muted); font-size:11px; }
.account-pagination-range strong { color:var(--text); font-weight:600; }
.account-pagination-links { display:flex; align-items:center; gap:5px; }
.account-page-link { min-width:32px; height:32px; display:grid; place-items:center; padding:0 8px; border:1px solid var(--line); background:#fff; color:var(--text); font-size:11px; }
.account-page-link:hover { border-color:var(--accent); color:var(--text); }
.account-page-link.is-current { border-color:var(--accent); background:var(--accent); color:#3e393a; font-weight:700; }
.account-page-link.is-disabled { color:#aaa; background:#f7f7f6; }
.account-page-ellipsis { padding:0 3px; color:var(--text-muted); font-size:12px; }
.catalog-page { padding:42px 0 64px; }
.catalog-page.catalog-wide { display:block; width:100%; max-width:100%; margin:0; padding-inline:0; transform:none; }
.catalog-page.catalog-wide .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.catalog-page.catalog-wide .product { min-width:0; }
.checkout-columns { width:calc(100% + 64px); margin-left:-32px; grid-template-columns:minmax(0,1fr) 400px; gap:56px; }
.catalog-page .section-head h1 { font-size:clamp(32px,4vw,44px); line-height:1.1; letter-spacing:-.05em; }
.catalog-page .catalog-toolbar { margin:24px 0 32px; }
.catalog-page .catalog-toolbar-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.catalog-page .search-box { flex:1; min-width:240px; }
.catalog-page .product-grid { min-height:100px; }
.catalog-page[aria-busy="true"] #catalog-products { opacity:.5; }
.product-image-link { display:block; color:inherit; }
.product-image-link:hover { color:inherit; }
.product { position:relative; }
.product-card-link { position:absolute; z-index:1; inset:0; }
.product .product-body { position:relative; z-index:2; pointer-events:none; }
.product .product-body a, .product .product-body button, .product .product-body input { pointer-events:auto; }
.product-body h3 a:hover { color:var(--accent); }
.product-title-line { display:flex; align-items:flex-start; justify-content:space-between; gap:13px; margin:0 0 10px; }
.product-title-line h3 { order:1; flex:1; margin:0; }
.product-body .product-card-price { order:2; flex:none; margin:0; color:#50494b; font-size:25px; line-height:1.12; text-align:right; white-space:nowrap; }
.product-body .product-card-price small { margin-top:4px; }
.product-bottom { display:block; margin-top:15px; }
.product-bottom .add-form { width:100%; }
.product-bottom .add-form .btn { width:100%; min-width:0; justify-content:center; gap:9px; }
.product-breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin:32px 0 20px; color:var(--text-muted); font-size:11px; }
.product-breadcrumbs a:hover { color:var(--accent); }
.product-detail { display:grid; grid-template-columns:minmax(220px,.72fr) minmax(280px,1fr) minmax(300px,.9fr); gap:clamp(22px,3vw,42px); padding:12px 0 72px; align-items:start; }
.product-detail-image { position:sticky; top:120px; display:grid; place-items:center; width:100%; max-width:380px; min-height:0; aspect-ratio:4/5; background:#f0efee; }
.product-detail-image img { width:100%; height:100%; max-height:470px; object-fit:contain; }
.product-detail-info { padding:10px 0; }
.product-detail-info h1 { margin:10px 0 18px; font-size:clamp(32px,3.5vw,48px); line-height:1.04; letter-spacing:-.06em; }
.product-detail-description { color:var(--text-muted); font-size:14px; line-height:1.75; margin-bottom:20px; }
.product-detail-facts { display:flex; justify-content:space-between; gap:15px; padding:13px 0; border-top:1px solid var(--line); font-size:12px; }
.product-detail-facts span { color:var(--text-muted); }
.product-detail-facts strong { text-align:right; font-weight:600; }
.product-detail-price { margin-top:22px; font-size:30px; font-weight:700; letter-spacing:-.04em; }
.product-detail-price small { color:var(--text-muted); font-size:12px; font-weight:400; letter-spacing:0; }
.product-detail-note { margin-top:8px; color:var(--text-muted); font-size:11px; line-height:1.6; }
.product-order-form { margin:0; padding:24px; background:#f0efee; }
.product-order-form h2 { margin:6px 0 7px; font-size:21px; letter-spacing:-.04em; }
.product-order-kicker { color:var(--accent); font-size:9px; font-weight:700; letter-spacing:.12em; }
.product-order-intro { margin:0 0 17px; color:var(--text-muted); font-size:11px; line-height:1.55; }
.product-order-form .field { margin-bottom:13px; }
.product-order-form .field input, .product-order-form .field textarea { background:#fff; }
.product-order-form .btn { width:100%; margin-top:4px; }
.product-order-form textarea { min-height:82px; }
.fulfillment-choice { margin:18px 0; padding:0; border:0; }
.fulfillment-choice legend { margin-bottom:10px; color:var(--text); font-size:13px; font-weight:700; }
.fulfillment-option { display:flex; align-items:flex-start; gap:10px; margin:8px 0; padding:11px 12px; border:1px solid var(--line); background:#fff; cursor:pointer; }
.fulfillment-option:has(input:checked) { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 16%,white); }
.fulfillment-option input { margin:3px 0 0; accent-color:var(--accent); }
.fulfillment-option span { display:grid; gap:2px; }
.fulfillment-option strong { font-size:12px; }
.fulfillment-option small, .delivery-fields .field small { color:var(--text-muted); font-size:10px; }
.delivery-fields { padding:10px 12px 1px; background:#fff; border:1px solid var(--line); border-top:0; }
.delivery-fields[hidden] { display:none; }
.delivery-summary[hidden], .delivery-grand-total[hidden] { display:none; }
.catalog-section { padding: 38px 0 48px; scroll-margin-top:100px; }
.catalog-section + .catalog-section { border-top:1px solid var(--line); }
.catalog-section .section-head { align-items:end; }
.catalog-section .section-head h2 { margin-top:5px; }
.catalog-kicker { color:var(--accent); font-size:10px; font-weight:700; letter-spacing:.14em; }
.section-count { color:var(--text-muted); font-size:12px; }
.catalog-empty { grid-column:1/-1; padding:30px; }
#catalog[aria-busy="true"] #product-grid, #catalog[aria-busy="true"] #service-grid { opacity:.48; transition:opacity .15s ease; }
@media(max-width:700px) {
    .brand-logo { width:145px; height:58px; }
    .home-search { margin:14px -16px 0; padding:30px 18px 20px; }
    .home-search h1 { margin-bottom:20px; }
    .home-search-input { min-height:58px; padding-left:14px; gap:8px; }
    .home-search-input input { font-size:13px; }
    .home-search-input button { width:42px; height:42px; }
    .home-search-options { flex-wrap:wrap; }
    .home-search-options .sort-select { flex:1; min-width:150px; }
    .catalog-shortcuts { gap:8px; }
    .catalog-shortcuts a { flex:1; justify-content:space-between; }
    .hero { padding-top:18px; grid-template-columns:1fr; gap:0; }
    .hero-main-image { aspect-ratio:1/1.08; }
    .hero-main-image::after { background:linear-gradient(90deg,rgba(239,224,225,.96),rgba(239,224,225,.78) 62%,rgba(239,224,225,.28)); }
    .hero-main-copy { width:100%; padding:22px; }
    .hero-main-title { max-width:420px; font-size:clamp(30px,9vw,48px); }
    .hero-main-description { max-width:340px; font-size:12px; }
    .work-gallery { padding-top:36px; }
    .work-gallery-heading { align-items:start; flex-direction:column; gap:8px; }
    .contacts-page { padding:36px 0 56px; }
    .contacts-page-grid { grid-template-columns:1fr; gap:14px; margin-top:28px; }
    .account-hero { min-height:150px; padding:23px 18px 42px; }
    .account-hero-note { right:18px; bottom:12px; }
    .account-summary { grid-template-columns:1fr auto; gap:14px; padding:14px; margin-bottom:42px; }
    .account-summary-link { grid-column:auto; padding:0; border:0; }
    .account-layout { grid-template-columns:1fr; }
    .account-settings { order:1; padding:18px; }
    .account-orders { order:2; }
    .hero-carousel { min-height:0; height:auto; aspect-ratio:1.35/1; }
    .product-breadcrumbs { margin-top:20px; }
    .product-detail { grid-template-columns:minmax(0,1fr); gap:22px; padding-bottom:44px; }
    .product-detail-image { position:static; width:min(100%,360px); max-width:none; min-height:0; aspect-ratio:4/3; margin:auto; }
    .product-detail-info h1 { font-size:36px; }
    .product-order-form { padding:18px; }
}
@media (min-width:901px) and (max-width:1150px) {
    .catalog-page.catalog-wide .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
}
@media (min-width:1151px) and (max-width:1320px) {
    .catalog-page.catalog-wide .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
}
@media (min-width:701px) and (max-width:900px) {
    .catalog-page.catalog-wide .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
}
@media (max-width:899px) {
    .checkout-columns { width:100%; margin-left:0; grid-template-columns:1fr; gap:28px; }
}
@media (max-width:700px) {
    .catalog-page.catalog-wide .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
}

/* Keep the cart control visually paired with the round account button. */
#header-cart-link.cart-link {
    position:relative;
    display:grid;
    place-items:center;
    width:38px;
    min-width:38px;
    height:38px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#e4dfe0;
    color:#464044;
    cursor:pointer;
    transition:background var(--transition), transform var(--transition);
}
#header-cart-link.cart-link:hover {
    background:color-mix(in srgb,var(--accent) 55%,white);
    color:#3e393a;
    transform:translateY(-1px);
}
#header-cart-link.cart-link:hover { background:color-mix(in srgb,var(--accent) 55%,white); color:#3e393a; transform:translateY(-1px); }
#header-cart-link .cart-icon { width:19px; height:19px; }
#header-cart-link #header-cart-count.cart-badge { position:absolute; z-index:2; top:-5px; right:-7px; display:flex; align-items:center; justify-content:center; width:20px; min-width:20px; height:20px; flex:0 0 20px; padding:0; border:2px solid var(--bg); border-radius:50%; background:var(--accent); color:#3e393a; font-size:9px; line-height:1; font-variant-numeric:tabular-nums; }
#header-cart-link #header-cart-count.cart-badge.is-empty { display:none !important; }
@media (max-width:480px) {
    .catalog-page.catalog-wide .product-grid { grid-template-columns:1fr; }
}

/* Mobile layout: keep navigation, controls, and content inside the viewport. */
@media (max-width:900px) {
    .header-inner { height:auto; min-height:0; flex-wrap:wrap; gap:10px 12px; padding-top:10px; padding-bottom:12px; }
    .header-inner > .brand { order:1; }
    .header-inner > .header-actions { order:2; width:auto; flex:1; min-width:0; gap:8px; }
    .header-inner > .header-nav { order:3; width:100%; gap:18px; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; }
    .header-inner > .header-nav::-webkit-scrollbar { display:none; }
    .header-nav a { flex:none; }
    .header-actions .header-search { width:auto; min-width:0; height:42px; flex:1; gap:6px; padding-left:11px; }
    .header-search input { font-size:13px; }
    .header-search button { width:34px; height:32px; }
    .header-account summary, .header-guest-account, #header-cart-link.cart-link { width:36px; min-width:36px; height:36px; }
    .site-notice { width:calc(100% - 24px); max-width:none; margin:8px auto; padding:10px 12px; align-items:flex-start; }
    .site-notice p { min-width:0; font-size:13px; overflow-wrap:anywhere; }
    .section-head { align-items:flex-start; gap:10px; }
    .section-head h1, .section-head h2 { overflow-wrap:anywhere; }
    .catalog-page.catalog-wide .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
    .catalog-page.catalog-wide .product .product-body { padding:14px 12px; }
    .catalog-page.catalog-wide .product-title-line { flex-direction:column-reverse; gap:6px; }
    .catalog-page.catalog-wide .product-body .product-card-price { align-self:flex-start; font-size:20px; text-align:left; }
    .catalog-page.catalog-wide .product h3 { font-size:16px; overflow-wrap:anywhere; }
    .catalog-page.catalog-wide .product p { font-size:12px; }
    .catalog-page.catalog-wide .product .product-meta { align-items:flex-start; font-size:11px; }
    .catalog-page.catalog-wide .product .add-form button { width:100%; min-width:0; padding:0 10px; font-size:11px; }
    .catalog-page .catalog-toolbar-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .catalog-page .catalog-toolbar-row .sort-select { min-width:0; width:100%; padding-right:30px; font-size:12px; }
    .catalog-page .catalog-toolbar-row .btn { grid-column:1/-1; justify-self:start; }
    .catalog-page.catalog-wide { padding-top:28px; }
    .product-breadcrumbs { gap:6px; font-size:10px; overflow-wrap:anywhere; }
    .product-detail-info, .product-order-form { min-width:0; }
    .product-detail-info h1 { overflow-wrap:anywhere; }
    .product-detail-facts { gap:10px; font-size:11px; }
    .product-detail-facts strong { min-width:0; overflow-wrap:anywhere; }
    .checkout-columns { width:100%; margin-left:0; }
    .checkout-columns > * { min-width:0; }
    .summary { padding:20px; }
    .summary-line { gap:10px; font-size:12px; }
    .summary-line > span { min-width:0; overflow-wrap:anywhere; }
    .summary-line > strong { flex:none; text-align:right; }
    .cart-row { grid-template-columns:minmax(0,1fr) auto; gap:10px 14px; padding:16px 0; }
    .cart-row > :first-child { min-width:0; }
    .cart-row h3 { font-size:15px; overflow-wrap:anywhere; }
    .cart-row > label { grid-column:2; grid-row:1; width:68px; }
    .cart-row .row-total { grid-column:1; grid-row:2; text-align:left; font-size:16px; }
    .cart-row .remove-btn { grid-column:2; grid-row:2; justify-self:end; }
    .footer-links { flex-wrap:wrap; gap:10px 16px; }
}

@media (max-width:380px) {
    .brand-logo { width:118px; height:48px; }
    .header-nav { gap:14px; }
    .header-nav a { font-size:10px; }
    .catalog-page.catalog-wide .product-grid { grid-template-columns:1fr; }
    .catalog-page.catalog-wide .product-title-line { flex-direction:row; align-items:flex-start; }
    .catalog-page.catalog-wide .product-body .product-card-price { align-self:flex-start; font-size:22px; text-align:right; }
    .catalog-page.catalog-wide .product h3 { font-size:18px; }
}

@media (max-width:700px) and (min-width:481px) {
    .catalog-page.catalog-wide .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:480px) {
    .catalog-page.catalog-wide .product-grid { grid-template-columns:1fr; }
}
