:root {
    --ink: #172235;
    --ink-soft: #405065;
    --teal: #2f6f73;
    --teal-dark: #23575b;
    --clay: #b96c45;
    --clay-dark: #945437;
    --porcelain: #fbfaf7;
    --stone: #ede7dc;
    --linen: #f5efe5;
    --white: #ffffff;
    --border: #ded6ca;
    --muted: #6f7784;
    --success: #2f6f73;
    --error: #b84436;
    --shadow: 0 16px 42px rgba(23, 34, 53, 0.12);
    --radius: 8px;
    --primary-color: var(--teal);
    --primary-dark: var(--teal-dark);
    --primary-light: #d8e8e6;
    --secondary-color: var(--ink);
    --accent-color: var(--clay);
    --text-primary: var(--ink);
    --text-secondary: var(--ink-soft);
    --bg-primary: var(--white);
    --bg-secondary: var(--porcelain);
    --border-color: var(--border);
    --footer-bg: var(--ink);
    --footer-text: var(--white);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--porcelain);
    min-width: 320px;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: rgba(251, 250, 247, 0.98);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 86px;
    display: grid;
    grid-template-columns: minmax(220px, 290px) minmax(260px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.brand-link,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-name {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--ink);
}

.brand-subtitle {
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.header-search {
    display: grid;
    grid-template-columns: 1fr 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    overflow: hidden;
}

.search-input-main {
    min-width: 0;
    border: 0;
    padding: 0 16px;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    outline: none;
}

.search-input-main::placeholder {
    color: #8992a0;
}

.search-submit {
    border: 0;
    background: var(--teal);
    color: var(--white);
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-submit:hover {
    background: var(--teal-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.header-phone i {
    color: var(--clay);
}

.cart-button-main {
    position: relative;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: var(--radius);
    background: var(--clay);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cart-button-main:hover {
    background: var(--clay-dark);
    transform: translateY(-1px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--porcelain);
}

.site-nav {
    border-top: 1px solid rgba(222, 214, 202, 0.75);
    overflow: hidden;
}

.nav-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-inner a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    padding: 14px 0;
    border-bottom: 2px solid transparent;
}

.nav-inner a:hover {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

.hero-tableware {
    padding: 54px 0 62px;
    background: linear-gradient(180deg, var(--linen) 0%, var(--porcelain) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
    gap: 42px;
    align-items: center;
}

.hero-content {
    max-width: 620px;
}

.hero-label,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
}

.hero-title,
.hero-content h1 {
    font-size: 48px;
    line-height: 1.08;
    margin: 18px 0 20px;
    color: var(--ink);
    font-weight: 800;
}

.hero-description {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 590px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.hero-btn-primary,
.hero-btn-secondary,
.product-button,
.add-to-cart-main {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-btn-primary {
    background: var(--teal);
    color: var(--white);
    padding: 0 22px;
}

.hero-btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

.hero-btn-secondary {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--border);
    padding: 0 18px;
}

.hero-btn-secondary:hover {
    border-color: var(--teal);
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.hero-facts div {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    padding: 14px;
}

.hero-facts dt {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
}

.hero-facts dd {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.hero-media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--stone);
    aspect-ratio: 16 / 9;
}

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

.features,
.products,
.site-description,
.page-section {
    padding: 72px 0;
}

.features {
    background: var(--porcelain);
}

.features-grid,
.products-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.product-card,
.service-card,
.catalog-guide article,
.info-panel,
.copy-panel,
.text-block,
.legal-page {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.feature-card {
    padding: 24px;
}

.feature-icon,
.service-card i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--teal);
    color: var(--white);
    margin-bottom: 18px;
}

.feature-card:nth-child(2) .feature-icon,
.service-card:nth-child(2) i {
    background: var(--clay);
}

.feature-card:nth-child(3) .feature-icon,
.service-card:nth-child(3) i {
    background: var(--ink);
}

.feature-title,
.service-card h2,
.catalog-guide h3 {
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--ink);
}

.feature-text,
.service-card p,
.catalog-guide p,
.section-subtitle,
.description-copy,
.page-hero p,
.copy-panel p,
.text-block p,
.legal-page p {
    color: var(--ink-soft);
}

.products {
    background: var(--linen);
}

.section-header {
    display: grid;
    gap: 10px;
    max-width: 760px;
    margin-bottom: 30px;
}

.section-title,
.description-title,
.page-hero h1,
.legal-page h2,
.copy-panel h2,
.info-panel h2,
.text-block h2 {
    color: var(--ink);
    line-height: 1.15;
}

.section-title,
.description-title,
.page-hero h1 {
    font-size: 34px;
    font-weight: 800;
}

.section-subtitle {
    font-size: 17px;
}

.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--stone);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 18px;
}

.product-info a {
    text-decoration: none;
}

.product-title {
    font-size: 17px;
    line-height: 1.35;
    color: var(--ink);
    margin-bottom: 10px;
}

.product-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--clay-dark);
    margin-bottom: 14px;
}

.product-button,
.add-to-cart-main {
    width: 100%;
    min-height: 44px;
    background: var(--teal);
    color: var(--white);
    padding: 0 16px;
}

.product-button:hover,
.add-to-cart-main:hover {
    background: var(--teal-dark);
}

.catalog-guide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.catalog-guide article {
    padding: 24px;
    min-height: 160px;
}

.site-description {
    background: var(--porcelain);
}

.description-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
    gap: 44px;
    align-items: start;
}

.description-copy {
    display: grid;
    gap: 16px;
    font-size: 17px;
}

.site-footer {
    background: var(--ink);
    color: var(--white);
    padding: 54px 0 22px;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(160px, 1fr));
    gap: 32px;
    margin-bottom: 36px;
}

.footer-logo {
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
}

.footer-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.footer-description,
.footer-links a,
.contact-info p,
.footer-bottom p {
    color: #cdd5df;
}

.footer-section h3 {
    font-size: 17px;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 9px;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: var(--white);
}

.contact-info {
    display: grid;
    gap: 12px;
}

.contact-info strong {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 18px;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: none;
}

.page-main {
    background: var(--porcelain);
}

.page-hero {
    padding: 58px 0;
    background: var(--linen);
    border-bottom: 1px solid var(--border);
}

.page-hero h1 {
    max-width: 820px;
    margin: 14px 0 12px;
}

.page-hero p {
    max-width: 760px;
    font-size: 18px;
}

.page-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}

.info-panel,
.copy-panel,
.text-block,
.legal-page,
.service-card {
    padding: 28px;
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.contact-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.contact-list i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--linen);
    color: var(--teal);
}

.contact-list strong,
.steps-list strong {
    display: block;
    color: var(--ink);
}

.copy-panel,
.text-block {
    display: grid;
    gap: 16px;
}

.service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.text-block {
    margin-top: 24px;
}

.steps-list {
    display: grid;
    gap: 14px;
    padding-left: 20px;
    color: var(--ink-soft);
}

.legal-page {
    display: grid;
    gap: 14px;
}

.legal-page h2 {
    font-size: 22px;
    margin-top: 12px;
}

.legal-page h2:first-child {
    margin-top: 0;
}

.map-panel {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.map-panel iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
}

.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 34, 53, 0.58);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-modal[style*="display: block"],
.cart-modal[style*="display:block"],
.cart-modal.show {
    display: flex !important;
}

.cart-content {
    background: var(--white);
    padding: 26px;
    border-radius: var(--radius);
    max-width: 760px;
    width: min(100%, 760px);
    max-height: 86vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
}

.cart-header h3 {
    font-size: 22px;
}

.close-cart {
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.cart-total {
    font-weight: 800;
    font-size: 18px;
    margin: 20px 0;
    text-align: right;
}

.cart-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
}

.cart-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
}

.cart-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 18px;
}

.cart-footer button {
    min-height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 800;
}

.clear-cart {
    background: #f0e5db;
    color: var(--ink);
}

.order-btn {
    background: var(--teal);
    color: var(--white);
}

.close-btn {
    background: var(--ink);
    color: var(--white);
}

.show-cart {
    width: 100%;
    border-collapse: collapse;
}

.show-cart th {
    padding: 10px 8px;
    border-bottom: 2px solid var(--border);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    color: var(--muted);
}

.show-cart td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

.show-cart td img,
td > img {
    width: 58px;
    height: 58px;
    max-height: 58px;
    object-fit: cover;
    border-radius: var(--radius);
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--linen);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}

.item-count {
    width: 42px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px;
    font-size: 14px;
}

.delete-item {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
}

.delete-item:hover {
    color: var(--error);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

.notification {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: var(--ink);
    color: var(--white);
    padding: 12px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1200;
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

@media (max-width: 1020px) {
    .header-inner {
        grid-template-columns: 1fr auto;
    }

    .header-search {
        grid-column: 1 / -1;
        order: 3;
        margin-bottom: 16px;
    }

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

    .hero-content {
        max-width: 780px;
    }

    .hero-media {
        min-height: 360px;
    }

    .features-grid,
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .container,
    .header-inner,
    .nav-inner {
        width: min(100% - 28px, 1180px);
    }

    .site-header {
        position: static;
    }

    .header-inner {
        min-height: 0;
        padding: 14px 0;
        gap: 14px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-name {
        font-size: 19px;
    }

    .header-phone span {
        display: none;
    }

    .header-phone {
        width: 46px;
        padding: 0;
        justify-content: center;
    }

    .nav-inner {
        justify-content: flex-start;
        gap: 20px;
    }

    .hero-tableware,
    .features,
    .products,
    .site-description,
    .page-section {
        padding: 48px 0;
    }

    .hero-content h1,
    .section-title,
    .description-title,
    .page-hero h1 {
        font-size: 30px;
    }

    .hero-description,
    .page-hero p,
    .section-subtitle {
        font-size: 16px;
    }

    .hero-facts,
    .catalog-guide,
    .service-grid,
    .description-grid,
    .page-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .hero-media {
        min-height: 0;
        width: 100%;
        min-width: 0;
    }

    .cart-content {
        padding: 20px;
    }

    .show-cart {
        min-width: 560px;
    }

    .cart-items {
        overflow-x: auto;
    }

    .back-to-top {
        display: none;
    }
}

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

    .brand-link {
        justify-self: start;
    }

    .header-actions {
        justify-self: stretch;
        justify-content: space-between;
    }

    .header-phone {
        width: auto;
        padding: 0 12px;
    }

    .header-phone span {
        display: inline;
        font-size: 14px;
    }

    .hero-content h1,
    .section-title,
    .description-title,
    .page-hero h1 {
        font-size: 26px;
    }

    .hero-buttons {
        display: grid;
    }

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

    .feature-card,
    .catalog-guide article,
    .info-panel,
    .copy-panel,
    .text-block,
    .legal-page,
    .service-card {
        padding: 20px;
    }

    .cart-footer {
        display: grid;
    }

    .cart-footer button {
        width: 100%;
    }
}
