:root {
    --red: #ef2b24;
    --dark-red: #c91512;
    --pink: #ffd8d1;
    --pale-pink: #ffe8e3;
    --ink: #151515;
    --muted: #6a5f5b;
    --line: #e5dedb;
    --paper: #fffdfc;
    --text-title: 20px;
    --text-body: 18px;
    --text-subtitle: 16px;
}

@font-face {
    font-family: 'DIN Web Pro';
    src: url('../fonts/din-webpro-light-w06.woff2') format('woff2');
    font-weight: 300 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Web Pro';
    src: url('../fonts/din-webpro-bold-w06.woff2') format('woff2');
    font-weight: 700 900;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: 'DIN Web Pro', Arial, Helvetica, sans-serif;
    font-size: var(--text-body);
    font-weight: 300;
    line-height: 1.2;
}

button,
input,
select {
    font: inherit;
}

input[type="number"] {
    appearance: textfield;
    text-align: center;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    appearance: none;
}

a {
    color: inherit;
}

.back-link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 20;
    padding: 8px 20px;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    background: var(--ink);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
}

.back-link-button-icon {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hero {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--pink);
}

.has-order-confirmation .hero {
    display: none;
}

.has-order-confirmation .back-link-button {
    display: none;
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

main {
    width: min(1200px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) 0 8rem;
}

.has-order-confirmation main {
    min-height: calc(100dvh - 440px);
}

.order-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 419px);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.products-column,
.details-column {
    min-width: 0;
}

.products-column > p {
    max-width: 760px;
}

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

h1 {
    margin-bottom: 16px;
    font-size: var(--text-title);
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 16px;
    font-size: var(--text-subtitle);
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0;
}

p {
    margin-bottom: 16px;
    font-size: var(--text-body);
    font-weight: 300;
    line-height: normal;
}

strong {
    font-weight: 700;
}

.products-column > p:has(> strong:only-child) {
    margin-bottom: 8px;
    font-size: var(--text-subtitle);
    font-weight: 700;
}

.note {
    color: var(--muted);
    font-size: 0.95rem;
}

.product-category {
    margin-top: clamp(2.4rem, 5vw, 4rem);
}

.product-card,
.order-summary,
.billing-address,
.radio-group {
    margin-bottom: 1rem;
    padding: clamp(1rem, 2.5vw, 1.6rem);
    background: #FCFBFA;
    border: 1px solid transparent;
}

.product-card {
    overflow: hidden;
}

.is-hidden {
    display: none;
}

#socials-title ~ .product-card,
#upgrades-title ~ .upgrade-grid .product-card {
    border: 1px solid #aaa;
}

.info-block {
    margin-top: clamp(2.4rem, 5vw, 4rem);
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.product-card__main,
.addon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 102px 220px;
    gap: 1rem;
    align-items: center;
}

.product-card__main > .product-controls,
.addon > .product-controls {
    display: contents;
}

.product-card__main > .product-controls .quantity-control,
.addon > .product-controls .quantity-control {
    grid-column: 2;
}

.product-card__main > .product-controls .product-price,
.addon > .product-controls .product-price {
    grid-column: 3;
}

.product-card__main > .product-price {
    grid-column: 3;
}

.choice {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
}

.choice--title {
    font-weight: 800;
}

.choice--title span {
    margin-bottom: 2px;
}

.choice input {
    margin-top: 0.2em;
    accent-color: var(--red);
}

.product-card .choice input[type="checkbox"] {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0;
    border: 1px solid var(--ink);
    border-radius: 100%;
    background: #fff;
}

.product-card .choice input[type="checkbox"]:before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background: var(--ink);
    transform: scale(0);
}

.product-card .choice input[type="checkbox"]:checked:before {
    transform: scale(1);
}

.product-card .choice input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.product-price {
    margin: 0 0 2px 0;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
    width: 100%;
}

.product-card__description {
    max-width: 620px;
    margin: 0.6rem 0 1rem 32px;
}

.product-controls {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    justify-content: space-between;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.quantity-control button,
.quantity-control input {
    width: 30px;
    height: 28px;
    padding: 0;
    background: #fff;
    border: 0;
    text-align: center;
}

.quantity-control button {
    color: var(--muted);
    cursor: pointer;
}

.quantity-control input {
    width: 34px;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    font-size: 0.82rem;
}

.package-list {
    display: grid;
    max-width: 360px;
    margin: 1rem 0 1.8rem 32px;
    padding: 0;
    gap: 6px;
    list-style: none;
}

.package-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.package-list small {
    display: block;
    font-size: 14px;
    line-height: normal;
}

.package-list--compact {
    margin-bottom: 1rem;
}

.addons {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    opacity: 0.45;
}

.addons.is-enabled {
    opacity: 1;
}

.addon + .addon {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #aaa;
}

.addon-description {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    max-width: 40%;
    margin: 0 0 0 32px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.product-image {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 1rem;
    background: #f8f5f3;
}

.product-image-note {
    margin: 24px 32px 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 300;
    line-height: normal;
}

.upgrade-grid {
    display: grid;
    gap: 1rem;
}

.details-column {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px;
    background: #FCFBFA;
    border: 0;
    box-shadow: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.details-column::-webkit-scrollbar {
    display: none;
}

.details-column h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 4px;
}

.form-row {
    display: grid;
    min-width: 0;
}

.form-row-location {
    grid-template-columns: minmax(0, 121fr) minmax(0, 244fr);
    column-gap: 14px;
}

.form-row-phone {
    grid-template-columns: minmax(0, 99fr) minmax(0, 270fr);
    column-gap: 10px;
}

.field {
    display: grid;
    grid-template-rows: auto 36px auto;
    gap: 4px;
    min-width: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.12px;
}

.field-full {
    width: 100%;
}

.field input,
.field select {
    width: 100%;
    height: 36px;
    min-height: 0;
    padding: 0 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #c6c6c6;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.field input::placeholder {
    color: #e6e6e6;
    opacity: 1;
}

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 24px) 15px, calc(100% - 17px) 15px;
    background-repeat: no-repeat;
    background-size: 8px 8px, 8px 8px;
}

.field input:focus,
.field select:focus {
    border-color: var(--ink);
    outline: 0;
}

.field.has-error input,
.field.has-error select {
    border-color: #f00;
    box-shadow: inset 0 0 0 1px #f00;
}

.field-error {
    display: block;
    min-height: 14px;
    color: #f00;
    font-size: 11px;
    font-weight: 800;
    line-height: 14px;
}

.radio-group {
    display: grid;
    gap: 4px;
    margin: 16px 0 0;
    padding: 0;
    border: 0;
}

.radio-group legend,
.billing-address legend,
.order-summary legend {
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
}

.radio-group label {
    display: flex;
    gap: 16px;
    align-items: center;
    min-height: 19px;
    font-size: 14px;
    font-weight: 300;
    line-height: normal;
}

.radio-group input,
.acceptance input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--ink);
}

.order-summary {
    margin: 16px 0 0;
    padding: 0;
    border: 0;
}

.billing-address {
    margin: 16px 0 0;
    padding: 0;
    border: 0;
}

.summary-row,
.summary-controls-row,
.summary-total {
    display: grid;
    grid-template-columns: 102px minmax(0, 1fr) 128px 18px;
    column-gap: 12px;
    align-items: center;
}

.summary-row:not(.summary-row--editable) .summary-name {
    grid-column: 1 / 3;
}

.summary-row:not(.summary-row--editable) .summary-quantity-slot {
    display: none;
}

.summary-row:not(.summary-row--editable) .summary-price {
    grid-column: 3;
}

.summary-row:not(.summary-row--editable) .summary-delete-slot {
    grid-column: 4;
}

.summary-row {
    padding: 0 0 12px;
    color: var(--ink);
    font-size: 12px;
    line-height: 19px;
}

.summary-row--editable {
    padding: 12px 0;
    border-top: 1px solid #8f8f8f;
}

.summary-row--editable .summary-name {
    grid-column: 1 / -1;
    margin-bottom: 12px;
}

.summary-controls-row {
    grid-column: 1 / -1;
    grid-template-columns: 102px minmax(0, 1fr) 128px 18px;
    justify-content: start;
}

.summary-controls-row .summary-price {
    grid-column: 3;
}

.summary-controls-row .summary-delete {
    grid-column: 4;
}

.summary-name {
    min-width: 0;
    margin: 0;
    font-size: 12px;
    line-height: 19px;
}

.summary-quantity-slot {
    width: 102px;
}

.summary-quantity-control {
    width: 102px;
    height: 25px;
    border-color: #d9d9d9;
    border-radius: 999px;
}

.summary-quantity-control button,
.summary-quantity-control input {
    height: 23px;
    color: #6f6f6f;
    font-size: 14px;
    line-height: 20px;
}

.quantity-control button,
.summary-quantity-control button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quantity-control button:before,
.summary-quantity-control button:before {
    content: '';
    display: block;
    width: 11px;
    height: 11px;
    background: center center / contain no-repeat;
}

.quantity-control button[data-quantity-decrease]:before,
.summary-quantity-control button[data-summary-quantity-decrease]:before {
    background-image: url('../img/icon-minus.svg');
}

.quantity-control button[data-quantity-increase]:before,
.summary-quantity-control button[data-summary-quantity-increase]:before {
    background-image: url('../img/icon-plus.svg');
}

.summary-quantity-control input {
    width: 45px;
    color: var(--ink);
}

.summary-price {
    min-width: 0;
    font-size: 12px;
    line-height: 19px;
    text-align: left;
    white-space: nowrap;
}

.summary-delete-slot {
    width: 18px;
    height: 18px;
}

.summary-delete {
    position: relative;
    width: 18px;
    height: 18px;
    padding: 0;
    background: url('../img/icon-trash.svg') center center / contain no-repeat;
    border: 0;
    cursor: pointer;
}

.summary-total {
    margin-top: 0;
    padding-top: 12px;
    border-top: 2px solid var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

.summary-total strong:first-child {
    grid-column: 1 / 3;
}

.summary-total strong:last-child {
    grid-column: 3 / 5;
    text-align: right;
}

.acceptance {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 16px 0 0;
    color: #5e5e5e;
    font-size: 9px;
    line-height: 1.32;
}

.acceptance.has-error input {
    border: 2px solid #f00;
    outline: 0;
}

.acceptance + .field-error {
    margin-top: 4px;
    margin-bottom: 12px;
}

.acceptance input {
    appearance: none;
    display: grid;
    place-content: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 1px solid var(--ink);
    border-radius: 2px;
}

.acceptance input:before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--ink);
    transform: scale(0);
}

.acceptance input:checked::before {
    transform: scale(1);
}

.captcha-placeholder {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    width: min(216px, 100%);
    height: 48px;
    margin-top: 8px;
    margin-bottom: 48px;
    padding: 8px 10px;
    border: 1px solid #6f6f6f;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
    line-height: 20px;
}

.captcha-field {
    margin-top: 8px;
    margin-bottom: 32px;
}

.captcha-field.has-error {
    outline: 1px solid #f00;
    outline-offset: 4px;
}

.captcha-config-warning {
    margin: 8px 0 0;
    color: #f00;
    font-size: 11px;
    font-weight: 800;
    line-height: 14px;
}

.captcha-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 24px;
    color: #fff;
    background: #2b2b2b;
    border-radius: 999px 999px 8px 8px;
    font-size: 12px;
    font-weight: 700;
}

.captcha-placeholder strong {
    align-self: end;
    color: #858585;
    font-size: 12px;
    line-height: 12px;
}

.captcha-placeholder small {
    display: inline;
    margin-left: 1px;
    font-size: 6px;
}

.submit-button {
    position: sticky;
    bottom: 0;
    z-index: 2;
    align-self: flex-end;
    width: min(219px, 100%);
    min-height: 35px;
    margin-top: auto;
    margin-bottom: 0;
    padding: 7px 11px;
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
    box-shadow: 0 -12px 24px rgba(255, 255, 255, 0.95), 0 12px 24px rgba(0, 0, 0, 0.14);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.order-confirmation {
    display: grid;
    max-width: 514px;
    gap: 16px;
    align-items: start;
    color: var(--ink);
}

.order-confirmation.is-hidden {
    display: none;
}

.order-confirmation:focus {
    outline: 0;
}

.order-confirmation-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: #fff;
    background: #00b103;
    border-radius: 100%;
}

.order-confirmation-icon svg {
    display: flex;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.order-confirmation-title {
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
}

.order-confirmation p {
    margin: 0;
}

.order-confirmation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 35px;
    margin-top: 90px;
    padding: 7px 20px;
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
}

.site-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 256px;
    min-height: 440px;
    background: var(--pink);
    padding: 36px 64px;
}

.footer-logo-left {
   flex: 1;
    max-width: 248px;
}

.footer-logo-left img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-logo-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.footer-logo-right img:nth-child(1) {
    width: 100%;
    max-width: 116px;
    height: auto;
}

.footer-logo-right img:nth-child(2) {
    width: 100%;
    max-width: 112px;
    height: auto;
}

.site-footer nav {
    display: flex;
    justify-content: flex-end;
    gap: 64px;
    width: 100%;
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 980px) {
    .order-form {
        grid-template-columns: 1fr;
    }

    .details-column {
        position: static;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        overscroll-behavior: auto;
        order: 0;
    }

    .submit-button {
        position: static;
    }
}

@media (max-width: 720px) {
    .product-card__main,
    .addon {
        grid-template-columns: 1fr;
    }

    .product-card__main > .product-controls,
    .addon > .product-controls {
        display: flex;
    }

    .product-card__main > .product-controls .quantity-control,
    .product-card__main > .product-controls .product-price,
    .product-card__main > .product-price,
    .addon > .product-controls .quantity-control,
    .addon > .product-controls .product-price {
        grid-column: auto;
    }

    .addon-description {
        max-width: 100%;
        margin-left: 0;
    }

    .product-controls {
        justify-content: space-between;
    }

    .product-card__description,
    .package-list {
        margin-left: 0;
    }

    .form-row-location,
    .form-row-phone {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }

    .site-footer {
        gap: 96px;
        padding: 20px;
        min-height: auto;
    }

    .footer-logo-right {
        flex-direction: column;
        gap: 20px;
    }

    .site-footer nav {
        gap: 32px;
    }
}

@media (max-width: 460px) {
    main {
        width: min(100% - 1rem, 1200px);
    }

    .product-controls {
        align-items: flex-start;
        flex-direction: column;
    }

}
