:root {
    --ink: #19372c;
    --ink-2: #315044;
    --green: #174c39;
    --green-dark: #10382a;
    --moss: #668448;
    --lime: #d7e56d;
    --lime-bright: #e9f28f;
    --cream: #f6f2e7;
    --cream-2: #ede8da;
    --paper: #fffdf8;
    --white: #ffffff;
    --line: #d9dfd5;
    --muted: #6e7d75;
    --warning: #b55236;
    --shadow: 0 18px 60px rgba(30, 61, 48, .11);
    --shadow-small: 0 8px 24px rgba(30, 61, 48, .09);
    --radius: 22px;
    --radius-small: 13px;
    --container: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image: radial-gradient(rgba(23, 76, 57, .045) 1px, transparent 1px);
    background-size: 24px 24px;
    content: "";
    pointer-events: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -.035em;
    line-height: 1.08;
}

h1 {
    font-size: clamp(2.5rem, 5.6vw, 5.6rem);
}

h2 {
    font-size: clamp(1.9rem, 3.5vw, 3.2rem);
}

h3 {
    font-size: 1.22rem;
}

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

.narrow-container {
    max-width: 900px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--white);
    color: var(--green-dark);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid #f0b84f;
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(217, 223, 213, .7);
    background: rgba(255, 253, 248, .92);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50% 50% 45% 55% / 60% 45% 55% 40%;
    background: var(--green);
    color: var(--lime-bright);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .04em;
    transform: rotate(-4deg);
}

.brand > span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand strong {
    letter-spacing: .05em;
}

.brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: .94rem;
    font-weight: 650;
}

.main-nav > a,
.nav-link {
    position: relative;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
}

.main-nav > a:not(.cart-link)::after,
.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    background: var(--green);
    content: "";
    transform: scaleX(0);
    transition: transform .18s ease;
}

.main-nav > a:hover::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-form {
    margin: 0;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-count {
    display: grid;
    min-width: 25px;
    height: 25px;
    padding-inline: 7px;
    place-items: center;
    border-radius: 999px;
    background: var(--lime);
    color: var(--green-dark);
    font-size: .75rem;
    font-weight: 900;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--ink);
}

.messages {
    position: relative;
    z-index: 20;
    padding-top: 16px;
}

.message {
    padding: 13px 18px;
    border: 1px solid #c9dbc4;
    border-radius: 12px;
    background: #eef8ea;
    box-shadow: var(--shadow-small);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 20%, rgba(214, 229, 109, .7), transparent 26%),
        linear-gradient(135deg, #f8f4e9 10%, #e8eedc 100%);
}

.hero::after {
    position: absolute;
    right: -10vw;
    bottom: -23vw;
    width: 46vw;
    height: 46vw;
    border: 1px solid rgba(23, 76, 57, .1);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    display: grid;
    min-height: 680px;
    align-items: center;
    grid-template-columns: minmax(0, 1.1fr) minmax(390px, .9fr);
    gap: 48px;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-block: 82px;
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--moss);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin-bottom: 24px;
}

.hero-lead {
    max-width: 670px;
    margin-bottom: 32px;
    color: var(--ink-2);
    font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.hero-actions,
.success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 760;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--green);
    box-shadow: 0 9px 24px rgba(23, 76, 57, .2);
    color: var(--white);
}

.button-primary:hover {
    background: var(--green-dark);
}

.button-ghost {
    border-color: var(--green);
    background: transparent;
    color: var(--green);
}

.button-ghost:hover {
    background: rgba(23, 76, 57, .05);
}

.button-dark {
    background: var(--ink);
    color: var(--white);
}

.button-small {
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: .9rem;
}

.button-block {
    width: 100%;
}

.button[disabled],
.button.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.hero-art {
    position: relative;
    min-height: 550px;
}

.hero-bag {
    position: absolute;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px 24px 42px 42px;
    box-shadow: 0 30px 70px rgba(23, 76, 57, .28);
    transform: rotate(-5deg);
}

.hero-bag::before {
    position: absolute;
    top: 25px;
    right: 20px;
    left: 20px;
    height: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .32);
    content: "";
}

.bag-front {
    z-index: 3;
    right: 32px;
    bottom: 48px;
    width: 290px;
    height: 380px;
    background:
        linear-gradient(155deg, transparent 42%, rgba(229, 240, 134, .12) 42%),
        var(--green);
    color: var(--white);
}

.bag-front small {
    color: var(--lime);
    font-weight: 800;
    letter-spacing: .12em;
}

.bag-front strong {
    margin: 15px 0;
    font-size: 2.1rem;
    letter-spacing: .04em;
}

.bag-front span {
    color: #dfe9e2;
}

.bag-back {
    z-index: 1;
    right: 240px;
    bottom: 80px;
    width: 220px;
    height: 310px;
    background: #e3c668;
    color: var(--green-dark);
    transform: rotate(8deg);
}

.bag-back span {
    font-weight: 900;
    letter-spacing: .08em;
    writing-mode: vertical-rl;
}

.hero-orbit {
    position: absolute;
    border: 1px solid rgba(23, 76, 57, .18);
    border-radius: 50%;
}

.orbit-one {
    inset: 50px 0 20px 30px;
}

.orbit-two {
    inset: 110px -60px 80px 100px;
}

.leaf {
    position: absolute;
    z-index: 4;
    width: 90px;
    height: 40px;
    border-radius: 100% 0 100% 0;
    background: var(--lime);
    box-shadow: var(--shadow-small);
}

.leaf-one {
    right: 2px;
    bottom: 235px;
    transform: rotate(-38deg);
}

.leaf-two {
    right: 310px;
    bottom: 30px;
    width: 72px;
    height: 31px;
    transform: rotate(28deg);
}

.discount-band {
    background: var(--green-dark);
    color: var(--white);
}

.discount-grid {
    display: grid;
    min-height: 112px;
    align-items: center;
    grid-template-columns: 230px 250px 1fr;
    gap: 28px;
}

.discount-grid > div {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 10px;
}

.discount-grid span {
    grid-column: 1 / -1;
    color: #aabeb4;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.discount-grid strong {
    font-size: 1.35rem;
}

.discount-grid b {
    color: var(--lime);
    font-size: 1.35rem;
}

.discount-grid p {
    margin: 0 0 0 auto;
    color: #d3ded8;
}

.section {
    padding-block: 90px;
}

.section-soft {
    background: var(--cream);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
}

.text-link {
    color: var(--green);
    font-weight: 750;
    text-underline-offset: 4px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 2px 0 rgba(23, 76, 57, .02);
    scroll-margin-top: 100px;
    transition: transform .18s ease, box-shadow .18s ease;
}

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

.product-card:target {
    box-shadow: 0 0 0 4px var(--lime), var(--shadow);
}

.product-visual {
    position: relative;
    display: flex;
    min-height: 190px;
    overflow: hidden;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    background: #dfe9d7;
    color: var(--green-dark);
}

.product-visual::before,
.product-visual::after {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.product-visual::before {
    top: -52px;
    right: -22px;
    width: 160px;
    height: 160px;
    border: 18px solid rgba(255, 255, 255, .24);
}

.product-visual::after {
    right: 28px;
    bottom: 36px;
    width: 66px;
    height: 28px;
    border-radius: 100% 0 100% 0;
    background: rgba(255, 255, 255, .5);
    transform: rotate(-26deg);
}

.category-tobacco .product-visual {
    background: #ead7b5;
    color: #573e2a;
}

.category-soil .product-visual {
    background: #d9d1c1;
    color: #4a4338;
}

.category-protection .product-visual {
    background: #d8e5e3;
    color: #244b47;
}

.product-visual span {
    position: relative;
    z-index: 2;
}

.product-visual span {
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .14em;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.product-category {
    margin-bottom: 7px;
    color: var(--moss);
    font-size: .71rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-card h3 {
    min-height: 2.65em;
    margin-bottom: 8px;
}

.product-package {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: .9rem;
}

.product-prices {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
}

.product-prices span {
    display: flex;
    flex-direction: column;
}

.product-prices small {
    color: var(--muted);
    font-size: .7rem;
}

.product-prices strong {
    font-size: 1.4rem;
}

.product-prices s {
    color: var(--muted);
    font-size: .92rem;
}

.product-buy {
    display: grid;
    margin-top: 18px;
    grid-template-columns: 66px 1fr;
    gap: 8px;
}

.product-buy input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
    text-align: center;
}

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

.steps li {
    min-height: 230px;
    padding: 28px;
    border: 1px solid rgba(23, 76, 57, .12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .6);
}

.steps span {
    display: block;
    margin-bottom: 45px;
    color: var(--moss);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.steps h3 {
    margin-bottom: 10px;
}

.steps p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .92rem;
}

.contact-card {
    display: grid;
    align-items: center;
    padding: 48px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 20%, rgba(215, 229, 109, .2), transparent 25%),
        var(--green);
    box-shadow: var(--shadow);
    color: var(--white);
    grid-template-columns: 1fr auto;
    gap: 30px;
}

.contact-card .eyebrow {
    color: var(--lime);
}

.contact-card h2 {
    margin-bottom: 10px;
}

.contact-card p {
    margin-bottom: 0;
    color: #d6e1dc;
}

.contact-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
}

.contact-phone {
    color: var(--lime-bright);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 850;
    text-decoration: none;
}

.contact-actions span {
    color: #c6d6ce;
    font-size: .85rem;
}

.page-hero,
.account-header {
    position: relative;
    overflow: hidden;
    background: var(--cream);
}

.page-hero::after,
.account-header::after {
    position: absolute;
    top: -130px;
    right: 4vw;
    width: 330px;
    height: 330px;
    border: 55px solid rgba(23, 76, 57, .055);
    border-radius: 50%;
    content: "";
}

.page-hero.compact .container {
    position: relative;
    z-index: 1;
    padding-block: 64px;
}

.page-hero h1 {
    margin-bottom: 13px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.page-hero p:last-child {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--ink-2);
    font-size: 1.08rem;
}

.catalog-section {
    padding-top: 50px;
}

.catalog-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-field {
    flex: 1;
}

.search-field input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}

.reset-link {
    margin-left: 8px;
    font-size: .88rem;
}

.category-tabs {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    margin: 22px 0 42px;
    padding-bottom: 3px;
}

.category-tabs a {
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
}

.category-tabs a.active,
.category-tabs a:hover {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}

.result-count {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: .85rem;
}

.full-width {
    grid-column: 1 / -1;
}

.cart-layout,
.checkout-layout,
.detail-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
}

.cart-panel,
.form-card,
.detail-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-small);
}

.cart-panel {
    min-height: 260px;
    padding: 10px 24px;
}

.cart-line {
    display: grid;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr 104px 110px 36px;
    gap: 18px;
}

.cart-line:last-child {
    border-bottom: 0;
}

.cart-product {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.cart-product-mark {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 16px;
    background: #e0e9d9;
    color: var(--green);
    font-size: .72rem;
    font-weight: 900;
}

.cart-product span {
    min-width: 0;
}

.cart-product strong,
.cart-product small {
    display: block;
}

.cart-product strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-product small {
    color: var(--muted);
}

.quantity-control {
    display: flex;
    height: 38px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.quantity-control button {
    width: 31px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--green);
    cursor: pointer;
    font-weight: 900;
}

.quantity-control input {
    width: 40px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

.line-total {
    text-align: right;
}

.remove-line {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.25rem;
}

.remove-line:hover {
    background: #f5e8e3;
    color: var(--warning);
}

.order-summary {
    position: sticky;
    top: 98px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
    box-shadow: var(--shadow-small);
}

.order-summary h2 {
    margin-bottom: 24px;
    font-size: 1.4rem;
}

.order-summary dl,
.totals-table {
    margin: 0 0 22px;
}

.order-summary dl > div,
.totals-table > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
}

.order-summary dt,
.order-summary dd,
.totals-table dt,
.totals-table dd {
    margin: 0;
}

.discount-row {
    color: var(--moss);
}

.summary-total {
    margin-top: 7px;
    padding-top: 16px !important;
    border-top: 1px solid var(--line);
    font-size: 1.25rem;
    font-weight: 850;
}

.summary-note {
    padding: 12px;
    border-radius: 10px;
    background: rgba(215, 229, 109, .35);
    color: var(--ink-2);
    font-size: .82rem;
}

.order-summary .button + .button {
    margin-top: 9px;
}

.fine-print {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.empty-state {
    padding: 70px 24px;
    text-align: center;
}

.empty-state h2 {
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.empty-state p {
    color: var(--muted);
}

.form-card {
    padding: 36px;
}

.checkout-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
}

.form-heading {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 28px;
}

.form-heading > span {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    font-size: .8rem;
    font-weight: 900;
}

.form-heading h2 {
    margin-bottom: 5px;
    font-size: 1.45rem;
}

.form-heading p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: .86rem;
}

.company-heading {
    margin-top: 42px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.field {
    margin-bottom: 20px;
}

.field > label,
.field > legend {
    display: block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: .84rem;
    font-weight: 750;
}

.form-control,
.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #cbd5cd;
    border-radius: 10px;
    background: var(--paper);
    color: var(--ink);
}

.field textarea {
    resize: vertical;
}

.form-control:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(23, 76, 57, .1);
    outline: none;
}

.errorlist {
    margin: 6px 0 0;
    padding: 0;
    color: var(--warning);
    font-size: .78rem;
    list-style: none;
}

.form-errors {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #ecc7ba;
    border-radius: 10px;
    background: #fff3ef;
    color: #8d3b28;
}

.form-errors .errorlist {
    margin: 0;
}

fieldset.field {
    padding: 0;
    border: 0;
}

.choice-cards ul {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    list-style: none;
}

.choice-cards label {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
}

.choice-cards label:has(input:checked) {
    border-color: var(--green);
    background: #edf4e9;
    box-shadow: 0 0 0 1px var(--green);
}

.choice-cards input {
    accent-color: var(--green);
}

.pickup-note {
    display: flex;
    margin: -5px 0 20px;
    flex-direction: column;
    padding: 14px;
    border-radius: 10px;
    background: var(--cream);
}

.pickup-note span {
    color: var(--muted);
    font-size: .84rem;
}

.company-snapshot {
    display: grid;
    margin: 0 0 12px;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

.company-snapshot div {
    min-width: 0;
}

.company-snapshot dt {
    color: var(--muted);
    font-size: .75rem;
}

.company-snapshot dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.submit-zone {
    margin-top: 35px;
}

.submit-zone p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .77rem;
    text-align: center;
}

.checkout-lines {
    max-height: 330px;
    overflow: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

.checkout-line {
    display: grid;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.checkout-line span,
.checkout-line small {
    display: block;
}

.checkout-line span {
    font-size: .86rem;
    font-weight: 700;
}

.checkout-line small {
    color: var(--muted);
}

.checkout-line strong {
    font-size: .85rem;
}

.compact-empty {
    padding: 22px 5px;
}

.auth-section {
    min-height: calc(100vh - 76px);
    padding: 70px 20px;
    background:
        radial-gradient(circle at 20% 30%, rgba(215, 229, 109, .25), transparent 26%),
        var(--cream);
}

.auth-shell {
    display: grid;
    width: min(100%, 980px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    grid-template-columns: 1fr 440px;
}

.auth-aside {
    padding: 70px 54px;
    background: var(--green);
    color: var(--white);
}

.auth-aside .eyebrow {
    color: var(--lime);
}

.auth-aside h1 {
    font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.auth-aside p:last-child {
    color: #d5e1db;
}

.auth-form {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.auth-form h2 {
    margin-bottom: 28px;
    font-size: 1.8rem;
}

.auth-switch {
    margin: 20px 0 0;
    font-size: .88rem;
    text-align: center;
}

.auth-switch a {
    color: var(--green);
    font-weight: 750;
}

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

.reset-result form {
    margin-top: 28px;
    text-align: left;
}

.reset-result > .button {
    margin-top: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
}

.field-wide {
    grid-column: 1 / -1;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
    font-weight: 500 !important;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: var(--green);
}

.help-text {
    margin-top: 5px;
    color: var(--muted);
    font-size: .73rem;
}

.help-text ul {
    margin: 5px 0;
    padding-left: 18px;
}

.profile-email {
    display: flex;
    margin: 6px 0 25px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px;
    border-radius: 10px;
    background: var(--cream);
}

.profile-email span {
    color: var(--muted);
    font-size: .82rem;
}

.account-header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 220px;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    padding-block: 48px;
}

.account-header h1 {
    margin-bottom: 8px;
    font-size: clamp(2.2rem, 4.7vw, 4rem);
}

.account-header p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.account-nav {
    display: flex;
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .7);
}

.account-nav a {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.account-nav a.active {
    background: var(--green);
    color: var(--white);
}

.order-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.order-row {
    display: grid;
    align-items: center;
    padding: 21px 24px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    grid-template-columns: 1.35fr 1fr .7fr .9fr 1fr auto;
    gap: 20px;
    text-decoration: none;
    transition: background .15s ease;
}

.order-row:last-child {
    border-bottom: 0;
}

.order-row:hover {
    background: var(--cream);
}

.order-row > span:not(.status) {
    display: flex;
    flex-direction: column;
}

.order-row small {
    color: var(--muted);
    font-size: .7rem;
}

.status {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e6eee4;
    color: var(--green);
    font-size: .73rem;
    font-weight: 800;
}

.status-cancelled {
    background: #f5e6e0;
    color: #90402d;
}

.status-completed {
    background: #e2f1de;
    color: #2a6b35;
}

.detail-heading {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 230px;
    align-items: end;
    padding-block: 45px;
    grid-template-columns: 1fr auto;
    gap: 20px;
}

.detail-heading .back-link {
    position: absolute;
    top: 32px;
    color: var(--green);
    font-weight: 700;
}

.detail-heading h1 {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
}

.detail-card {
    padding: 30px;
}

.detail-card h2 {
    margin-bottom: 24px;
    font-size: 1.45rem;
}

.detail-lines > div {
    display: grid;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 1fr 70px 100px;
    gap: 12px;
}

.detail-lines span strong,
.detail-lines span small {
    display: block;
}

.detail-lines span small {
    color: var(--muted);
    font-size: .78rem;
}

.detail-lines > div > b,
.detail-lines > div > strong {
    text-align: right;
}

.totals-table {
    width: min(100%, 370px);
    margin: 22px 0 0 auto;
}

.order-meta dl {
    margin: 0;
}

.order-meta dl > div {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.order-meta dt {
    color: var(--muted);
    font-size: .73rem;
}

.order-meta dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-weight: 650;
}

.success-section {
    min-height: 70vh;
    padding: 90px 20px;
    background:
        radial-gradient(circle at center, rgba(215, 229, 109, .3), transparent 30%),
        var(--cream);
}

.success-card {
    max-width: 760px;
    padding: 60px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow);
    text-align: center;
}

.success-mark {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--lime);
    color: var(--green);
    font-size: 1.8rem;
    font-weight: 900;
}

.success-card h1 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 5vw, 3.7rem);
}

.success-lead {
    color: var(--muted);
    font-size: 1.05rem;
}

.success-total {
    display: flex;
    width: min(100%, 390px);
    margin: 28px auto;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 12px;
    background: var(--cream);
}

.success-total span {
    color: var(--muted);
    font-size: .82rem;
}

.success-total strong {
    font-size: 1.25rem;
}

.success-actions {
    justify-content: center;
}

.legal-copy {
    max-width: 850px;
}

.legal-copy h2 {
    margin: 40px 0 12px;
    font-size: 1.45rem;
}

.legal-copy p {
    color: var(--ink-2);
}

.legal-notice,
.legal-contact {
    padding: 22px;
    border-left: 4px solid var(--lime);
    border-radius: 0 12px 12px 0;
    background: var(--cream);
}

.legal-contact {
    display: flex;
    margin-top: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.legal-contact a {
    color: var(--green);
    font-size: 1.2rem;
    font-weight: 850;
}

.error-section {
    min-height: 65vh;
    padding: 100px 20px;
    background: var(--cream);
}

.error-card {
    max-width: 680px;
    text-align: center;
}

.error-card > span {
    color: var(--lime);
    font-size: clamp(5rem, 16vw, 10rem);
    font-weight: 950;
    letter-spacing: -.08em;
    text-shadow: 0 4px 0 var(--green);
}

.error-card h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.error-card p {
    margin-bottom: 28px;
    color: var(--muted);
}

.site-footer {
    padding: 58px 0 20px;
    background: #102b22;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.3fr .7fr;
    gap: 38px;
}

.brand-footer {
    color: var(--white);
}

.brand-footer small {
    color: #a8bbb2;
}

.site-footer h2 {
    margin-bottom: 12px;
    color: #9eb2a8;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 0 0 7px;
    color: #d7e2dc;
    font-size: .9rem;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--lime);
}

.site-footer .muted {
    color: #8fa59a;
    font-size: .76rem;
}

.footer-bottom {
    display: flex;
    margin-top: 45px;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #84998f;
    font-size: .75rem;
}

.toast {
    position: fixed;
    z-index: 500;
    right: 20px;
    bottom: 20px;
    max-width: min(380px, calc(100vw - 40px));
    padding: 13px 18px;
    border-radius: 12px;
    background: var(--green-dark);
    box-shadow: var(--shadow);
    color: var(--white);
    font-size: .88rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1050px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-grid {
        min-height: 620px;
        grid-template-columns: 1.15fr .85fr;
    }

    .hero-art {
        min-height: 470px;
        transform: scale(.88);
        transform-origin: center right;
    }

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

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

    .order-row {
        grid-template-columns: 1.3fr 1fr .8fr 1fr auto;
    }

    .order-row > span:nth-child(3) {
        display: none;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 12px 20px 20px;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        box-shadow: var(--shadow-small);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav > a,
    .nav-link {
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
    }

    .cart-link {
        justify-content: space-between;
    }

    .hero-grid {
        display: block;
        min-height: 0;
    }

    .hero-copy {
        padding: 65px 0 55px;
    }

    .hero-art {
        display: none;
    }

    .discount-grid {
        padding-block: 24px;
        grid-template-columns: 1fr 1fr;
    }

    .discount-grid p {
        grid-column: 1 / -1;
        margin: 0;
    }

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

    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        align-items: flex-start;
    }

    .cart-layout,
    .checkout-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }

    .checkout-summary {
        grid-row: 1;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        padding: 45px 36px;
    }

    .account-header-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-end;
    }

    .order-row {
        grid-template-columns: 1.3fr 1fr 1fr auto;
    }

    .order-row > span:nth-child(2) {
        display: none;
    }
}

@media (max-width: 590px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .header-inner {
        min-height: 68px;
    }

    .brand small {
        display: none;
    }

    h1 {
        font-size: 2.6rem;
    }

    .section {
        padding-block: 62px;
    }

    .hero-copy {
        padding-block: 52px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .discount-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .discount-grid p {
        grid-column: auto;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .product-visual {
        min-height: 155px;
    }

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

    .steps li {
        min-height: 0;
    }

    .steps span {
        margin-bottom: 28px;
    }

    .contact-card {
        padding: 30px 24px;
    }

    .page-hero.compact .container {
        padding-block: 48px;
    }

    .catalog-tools {
        flex-wrap: wrap;
    }

    .search-field {
        flex: 1 0 100%;
    }

    .cart-panel {
        padding-inline: 16px;
    }

    .cart-line {
        grid-template-columns: 1fr 32px;
        gap: 12px;
    }

    .cart-product {
        grid-column: 1 / -1;
    }

    .quantity-control {
        width: 104px;
    }

    .line-total {
        margin-left: auto;
    }

    .cart-line .quantity-control,
    .cart-line .line-total {
        grid-row: 2;
    }

    .cart-line .remove-line {
        grid-column: 2;
        grid-row: 1;
    }

    .form-card,
    .detail-card,
    .order-summary {
        padding: 24px 18px;
    }

    .form-grid,
    .company-snapshot {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: auto;
    }

    .choice-cards ul {
        grid-template-columns: 1fr;
    }

    .auth-section {
        padding: 25px 14px;
    }

    .auth-aside {
        padding: 36px 24px;
    }

    .account-header-inner {
        min-height: 250px;
        padding-bottom: 35px;
    }

    .account-nav {
        width: 100%;
    }

    .account-nav a {
        flex: 1;
        text-align: center;
    }

    .order-row {
        position: relative;
        display: grid;
        padding: 18px;
        grid-template-columns: 1fr auto;
    }

    .order-row > span:nth-child(2),
    .order-row > span:nth-child(3),
    .order-row > span:nth-child(4) {
        display: none;
    }

    .order-row > b {
        position: absolute;
        right: 17px;
        bottom: 15px;
    }

    .detail-heading {
        grid-template-columns: 1fr;
    }

    .detail-lines > div {
        grid-template-columns: 1fr auto;
    }

    .detail-lines > div > b {
        display: none;
    }

    .success-card {
        padding: 42px 20px;
    }

    .success-actions .button {
        width: 100%;
    }

    .legal-contact {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
}

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