:root {
    --primary: #05b985;
    --primary-dark: #078969;
    --navy: #111a30;
    --text: #172036;
    --muted: #64748b;
    --border: #dfe5ec;
    --light: #f5f8fc;
    --white: #fff;
    --danger: #dc2626;
    --shadow: 0 12px 35px rgba(15, 23, 42, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: white;
    font-family:
        Inter, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.5;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a,
input[type="radio"],
input[type="checkbox"] {
    cursor: pointer;
}

.container {
    width: min(1180px, calc(100% - 34px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(15px);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-decoration: none;
}

.brand-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #1ac9cf, #009879);
}

.brand strong,
.brand small {
    display: block;
}

.brand em {
    color: var(--primary-dark);
    font-style: normal;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a,
.back-link {
    color: #475569;
    font-weight: 650;
    text-decoration: none;
}

.main-nav .nav-order-button {
    padding: 10px 18px;
    border-radius: 999px;
    color: white;
    background: var(--primary);
}

.hero,
.order-hero {
    color: white;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(45, 225, 177, 0.25),
            transparent 32%
        ),
        linear-gradient(135deg, #0d1528, #13223e 65%, #08765f);
}

.hero-content {
    padding-block: 80px;
}

.eyebrow {
    display: inline-block;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    color: #9bf0d3;
    background: rgba(255,255,255,.08);
    font-size: 13px;
    font-weight: 800;
}

.hero h1 {
    max-width: 780px;
    margin: 22px 0 16px;
    font-size: clamp(43px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero h1 span {
    display: block;
    color: #4ee5c2;
}

.hero-content > p {
    max-width: 690px;
    color: #d6dfed;
    font-size: 19px;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-link,
.outline-link {
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.primary-link {
    color: white;
    background: var(--primary);
}

.outline-link {
    color: white;
    border: 1px solid rgba(255,255,255,.3);
}

.hero-statistics {
    margin-top: 42px;
    display: flex;
    gap: 55px;
}

.hero-statistics strong,
.hero-statistics span {
    display: block;
}

.hero-statistics strong {
    font-size: 30px;
}

.hero-statistics span {
    color: #cbd5e1;
    font-size: 13px;
}

.section {
    padding-block: 72px;
}

.section-label {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .1em;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 35px;
    text-align: center;
}

.section-heading h2,
.about-grid h2 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.15;
    letter-spacing: -.04em;
}

.section-heading p,
.about-grid p {
    color: var(--muted);
}

.about-section {
    background: #f7f9fc;
}

.about-grid {
    display: grid;
    grid-template-columns: .8fr 1fr;
    align-items: center;
    gap: 45px;
}

.about-visual {
    min-height: 390px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    color: white;
    background: linear-gradient(145deg, #12b6ca, #058961);
    font-size: 110px;
    box-shadow: var(--shadow);
}

.feature-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-grid span {
    padding: 13px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(15,23,42,.06);
}

/* Compact desktop catalogue */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.catalog-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: white;
    box-shadow: 0 5px 16px rgba(15,23,42,.07);
}

.card-head {
    min-height: 135px;
    padding: 15px;
    color: white;
    background: linear-gradient(
        145deg,
        var(--theme-a),
        var(--theme-b)
    );
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255,255,255,.17);
    font-size: 20px;
}

.size-badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.17);
    font-size: 11px;
    font-weight: 800;
}

.card-head h3 {
    margin: 14px 0 2px;
    font-size: 21px;
}

.card-head p {
    margin: 0;
    color: rgba(255,255,255,.9);
    font-size: 12px;
}

.card-body {
    padding: 14px;
}

.product-description {
    min-height: 38px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
}

.price-list {
    display: grid;
    gap: 6px;
}

.price-list > div {
    padding: 8px 9px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-radius: 9px;
    background: #f7f9fc;
    font-size: 12px;
}

.price-list > div:last-child {
    background: #e9fbf5;
    border: 1px solid #baeddc;
}

.price-list small {
    color: #94a3b8;
}

.card-order-button {
    margin-top: 13px;
    padding: 10px;
    display: block;
    border-radius: 10px;
    color: white;
    background: var(--navy);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.theme-cyan {
    --theme-a: #0ea5e9;
    --theme-b: #079ab4;
}

.theme-green {
    --theme-a: #05bfa1;
    --theme-b: #00946b;
}

.theme-slate {
    --theme-a: #61738e;
    --theme-b: #2f3b50;
}

.theme-orange {
    --theme-a: #ff9c0b;
    --theme-b: #ff5200;
}

.theme-indigo {
    --theme-a: #6659ff;
    --theme-b: #1f5cff;
}

.theme-pink {
    --theme-a: #ff1b6b;
    --theme-b: #ea006b;
}

.theme-lime {
    --theme-a: #66d600;
    --theme-b: #05b96c;
}

.delivery-info {
    background: #f5f8fc;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-grid article {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: white;
}

.info-grid article > span {
    font-size: 30px;
}

.info-grid h3 {
    margin: 12px 0 5px;
}

.info-grid p {
    margin: 0;
    color: var(--muted);
}

.cta-section {
    padding: 65px 0;
}

.cta-box {
    padding: 45px 25px;
    border-radius: 25px;
    color: white;
    background: linear-gradient(135deg, #05bc85, #078a69);
    text-align: center;
}

.cta-box h2 {
    margin: 0;
    font-size: clamp(28px, 5vw, 43px);
}

.cta-box p {
    margin-bottom: 28px;
}

.cta-box .primary-link {
    color: var(--navy);
    background: white;
}

.site-footer {
    padding-block: 35px;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-footer p {
    margin: 3px 0;
    color: var(--muted);
}

.site-footer a {
    color: var(--muted);
}

/* Order form */

.order-hero {
    padding-block: 55px;
    text-align: center;
}

.order-hero h1 {
    margin: 10px 0 6px;
    font-size: 46px;
}

.order-hero p {
    color: #d6dfed;
}

.order-product.selected {
    outline: 3px solid rgba(5,185,133,.2);
}

.order-product.invalid {
    outline: 2px solid var(--danger);
}

.quantity-label {
    margin: 13px 0 6px;
    display: block;
    font-size: 12px;
    font-weight: 800;
}

.quantity-control {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
}

.quantity-control:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5,185,133,.1);
}

.quantity-control input {
    width: 100%;
    min-width: 0;
    padding: 10px;
    border: 0;
    outline: 0;
}

.quantity-control span {
    padding-right: 10px;
    color: var(--muted);
    font-size: 12px;
}

.line-result {
    min-height: 18px;
    margin: 8px 0 0;
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 750;
}

.form-error {
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    background: #fef2f2;
}

.light-section {
    background: var(--light);
}

.order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(310px, .65fr);
    align-items: start;
    gap: 25px;
}

.order-fields {
    display: grid;
    gap: 20px;
}

.form-panel,
.order-summary {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}

.panel-heading {
    margin-bottom: 22px;
    display: flex;
    gap: 12px;
}

.panel-heading > span {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: white;
    background: var(--primary);
    font-weight: 850;
}

.panel-heading h2,
.panel-heading p {
    margin: 0;
}

.panel-heading p {
    color: var(--muted);
    font-size: 14px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 17px;
}

.field-group {
    display: grid;
    gap: 7px;
    color: #344158;
    font-size: 14px;
    font-weight: 700;
}

.field-group input,
.field-group textarea,
.field-group select {
    width: 100%;
    padding: 12px 13px;
    border: 1.5px solid #cbd5e1;
    border-radius: 11px;
    outline: 0;
}

.field-group input:focus,
.field-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5,185,133,.1);
}

.field-group textarea {
    resize: vertical;
}

.field-group small {
    color: var(--muted);
    font-weight: 400;
}

.delivery-options {
    display: grid;
    gap: 10px;
}

.delivery-options label {
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.delivery-options strong,
.delivery-options small {
    display: block;
}

.delivery-options small {
    color: var(--muted);
}

.address-search-row {
    display: flex;
    gap: 9px;
}

.dark-button,
.location-button,
.muted-button {
    padding: 11px 15px;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
}

.dark-button {
    color: white;
    background: var(--navy);
}

.location-actions {
    margin: 14px 0;
    display: flex;
    gap: 9px;
}

.location-button {
    color: white;
    background: var(--primary-dark);
}

.muted-button {
    color: #475569;
    background: #edf1f5;
}

.search-status {
    min-height: 21px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.address-results {
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.address-results button {
    width: 100%;
    padding: 11px;
    display: block;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: white;
    text-align: left;
}

.address-results button:hover {
    background: #edfbf6;
}

.delivery-map {
    height: 370px;
    border-radius: 15px;
    background: #e5e9ef;
}

.google-map-link {
    margin-top: 9px;
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 750;
}

.address-textarea {
    margin-top: 18px;
}

.order-summary {
    position: sticky;
    top: 92px;
}

.order-summary h2 {
    margin-top: 0;
}

#summary-items {
    display: grid;
    gap: 8px;
}

.empty-summary {
    padding: 14px;
    border-radius: 10px;
    color: var(--muted);
    background: #f7f9fc;
    text-align: center;
}

.summary-item {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-radius: 9px;
    background: #f7f9fc;
    font-size: 13px;
}

.summary-item strong,
.summary-item small {
    display: block;
}

.summary-item small {
    color: var(--muted);
}

.summary-totals {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.summary-totals > div {
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.summary-totals dd {
    margin: 0;
    font-weight: 800;
}

.summary-grand-total {
    margin-top: 8px;
    padding-top: 14px !important;
    border-top: 1px dashed #cbd5e1;
    font-size: 17px;
}

.summary-deposit {
    color: var(--primary-dark);
}

.agreement {
    margin: 17px 0;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
}

.submit-order-button {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #06bd88, #008c69);
    font-weight: 850;
}

.submit-order-button:disabled {
    opacity: .6;
}

.summary-note {
    margin-top: 9px;
    display: block;
    color: var(--muted);
    text-align: center;
}

.empty-box {
    padding: 40px;
    border: 1px dashed #cbd5e1;
    border-radius: 15px;
    text-align: center;
}

.error-page {
    min-height: 100vh;
    padding: 20px;
    display: grid;
    place-items: center;
    background: #f4f7fb;
}

.error-card {
    width: min(600px, 100%);
    padding: 28px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
}

.error-card h1 {
    color: var(--danger);
}

.error-card button {
    padding: 11px 17px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: var(--primary-dark);
}

@media (max-width: 1050px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .order-layout,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .main-nav a:not(.nav-order-button) {
        display: none;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .section {
        padding-block: 52px;
    }

    .catalog-grid,
    .field-grid,
    .feature-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .catalog-grid {
        gap: 15px;
    }

    .card-head {
        min-height: 140px;
        padding: 17px;
    }

    .card-body {
        padding: 16px;
    }

    .quantity-control input {
        font-size: 16px;
    }

    .hero-content {
        padding-block: 60px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-statistics {
        gap: 25px;
    }

    .address-search-row,
    .location-actions {
        display: grid;
    }

    .delivery-map {
        height: 320px;
    }

    .form-panel,
    .order-summary {
        padding: 18px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
}