:root {
    --template-kits-ink: #171c2a;
    --template-kits-muted: #667085;
    --template-kits-line: #e4eaf1;
    --template-kits-blue: #247fc3;
    --template-kits-blue-dark: #176da9;
    --template-kits-pink: #dc075f;
    --template-kits-pink-soft: #fff0f6;
}

.template-kits-page,
.template-kits-page * {
    box-sizing: border-box;
}

.template-kits-page {
    background: #fff;
    color: var(--template-kits-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

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

.template-kits-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 20%, rgba(220, 7, 95, .12), transparent 29%),
        linear-gradient(135deg, #f6faff 0%, #fff 54%, #fff5f9 100%);
    border-bottom: 1px solid #f1d9e3;
}

.template-kits-hero:before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background-image: linear-gradient(rgba(36, 127, 195, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 127, 195, .035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to right, #000, transparent 75%);
}

.template-kits-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    align-items: center;
    min-height: 470px;
    padding: 78px 0 74px;
}

.template-kits-eyebrow {
    margin-bottom: 13px;
    color: var(--template-kits-pink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.template-kits-hero h1,
.template-kits-section-heading h2,
.template-kits-feedback h2,
.template-kit-card h3 {
    margin: 0;
    color: var(--template-kits-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: -.035em;
}

.template-kits-hero h1 {
    max-width: 680px;
    font-size: clamp(42px, 5.2vw, 66px);
    line-height: 1.02;
}

.template-kits-hero__copy > p {
    max-width: 660px;
    margin: 23px 0 30px;
    color: #526075;
    font-size: 19px;
    line-height: 1.55;
}

.template-kits-primary-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: var(--template-kits-pink);
    box-shadow: 0 10px 24px rgba(220, 7, 95, .18);
    color: #fff;
    cursor: pointer;
    font: 700 14px/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.template-kits-primary-button:hover,
.template-kits-primary-button:focus-visible {
    background: #c80055;
    box-shadow: 0 13px 28px rgba(220, 7, 95, .25);
    color: #fff;
    transform: translateY(-1px);
}

.template-kits-primary-button:disabled {
    cursor: wait;
    opacity: .62;
    transform: none;
}

.template-kits-hero__visual {
    position: relative;
    min-height: 330px;
}

.template-kits-hero__sheet {
    position: absolute;
    display: block;
    border: 1px solid rgba(35, 62, 94, .12);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(22, 52, 85, .18);
}

.template-kits-hero__sheet--back {
    top: 42px;
    right: 31px;
    width: 244px;
    height: 244px;
    background: linear-gradient(145deg, #1c2739 0 52%, #247fc3 52% 72%, #fff 72%);
    transform: rotate(9deg);
}

.template-kits-hero__sheet--middle {
    top: 21px;
    right: 92px;
    width: 215px;
    height: 284px;
    background: linear-gradient(155deg, #fff 0 56%, #ffe1ed 56% 72%, #dc075f 72%);
    transform: rotate(-7deg);
}

.template-kits-hero__sheet--front {
    top: 74px;
    right: 137px;
    width: 268px;
    height: 168px;
    padding: 34px 30px;
    background: #fff;
    transform: rotate(-1.5deg);
}

.template-kits-hero__sheet--front:before {
    display: block;
    width: 62%;
    height: 16px;
    margin-bottom: 25px;
    border-radius: 4px;
    background: var(--template-kits-ink);
    content: "";
}

.template-kits-hero__sheet--front i {
    display: block;
    width: 76%;
    height: 7px;
    margin: 10px 0;
    border-radius: 5px;
    background: #dce6ef;
}

.template-kits-hero__sheet--front i:nth-child(2) { width: 58%; }
.template-kits-hero__sheet--front i:nth-child(3) { width: 68%; background: #f4b5ce; }

.template-kits-hero__badge {
    position: absolute;
    right: 2px;
    bottom: 35px;
    min-width: 112px;
    padding: 13px 17px;
    border: 1px solid #f4c6d8;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(40, 42, 52, .12);
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
}

.template-kits-hero__badge b {
    color: var(--template-kits-pink);
    font-size: 15px;
}

.template-kits-catalog {
    padding: 82px 0 92px;
}

.template-kits-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
    gap: 50px;
    align-items: end;
    margin-bottom: 34px;
}

.template-kits-section-heading h2,
.template-kits-feedback h2 {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.08;
}

.template-kits-section-heading > p,
.template-kits-feedback__copy > p {
    margin: 0;
    color: var(--template-kits-muted);
    font-size: 16px;
}

.template-kits-list {
    display: grid;
    gap: 22px;
}

.template-kit-card {
    overflow: hidden;
    border: 1px solid var(--template-kits-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 30px rgba(26, 45, 69, .06);
}

.template-kit-card__header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px 26px 21px;
    border-bottom: 1px solid var(--template-kits-line);
    background: linear-gradient(90deg, color-mix(in srgb, var(--kit-accent) 6%, #fff), #fff 45%);
}

.template-kit-card__number {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--kit-accent) 26%, #d7dfe8);
    border-radius: 12px;
    background: #fff;
    color: var(--kit-accent);
    font-size: 13px;
    font-weight: 800;
}

.template-kit-card__title h3 {
    font-size: 26px;
    line-height: 1.1;
}

.template-kit-card__title p {
    max-width: 720px;
    margin: 5px 0 0;
    color: var(--template-kits-muted);
    font-size: 14px;
}

.template-kit-card__meta {
    padding: 8px 11px;
    border-radius: 8px;
    background: #f2f6fa;
    color: #5f6c7e;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.template-kit-card__templates {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.template-kit-card__templates-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.template-kit-preview {
    overflow: hidden;
    border: 1px solid var(--template-kits-line);
    border-radius: 13px;
    background: #fff;
    color: var(--template-kits-ink);
    text-decoration: none;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.template-kit-preview:hover,
.template-kit-preview:focus-visible {
    border-color: color-mix(in srgb, var(--kit-accent) 45%, #d8e0e8);
    box-shadow: 0 12px 28px rgba(25, 47, 76, .12);
    color: var(--template-kits-ink);
    transform: translateY(-2px);
}

.template-kit-preview__image {
    position: relative;
    display: flex;
    height: 235px;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        linear-gradient(45deg, rgba(36, 127, 195, .025) 25%, transparent 25%, transparent 75%, rgba(36, 127, 195, .025) 75%),
        #f7f9fc;
    background-size: 22px 22px;
}

.template-kit-preview__image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 3px;
    box-shadow: 0 8px 22px rgba(19, 34, 54, .18);
    object-fit: contain;
}

.template-kit-preview__sides {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 7px;
    background: rgba(26, 35, 50, .76);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
}

.template-kit-preview__footer {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
}

.template-kit-preview__footer > span:first-child {
    display: grid;
    gap: 2px;
}

.template-kit-preview__footer strong { font-size: 14px; }
.template-kit-preview__footer small { color: var(--template-kits-muted); font-size: 11px; }

.template-kit-preview__action {
    color: var(--template-kits-blue);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.template-kit-preview__action b {
    display: inline-block;
    margin-left: 2px;
    transition: transform .16s ease;
}

.template-kit-preview:hover .template-kit-preview__action b { transform: translateX(3px); }

@media (min-width: 901px) {
    .template-kit-card__templates-row--count-1 {
        grid-template-columns: minmax(0, 1fr);
    }

    .template-kit-card__templates-row--count-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .template-kit-card__templates-row--count-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .template-kit-card__templates-row--count-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 11px;
    }

    .template-kit-card__templates-row--count-4 .template-kit-preview__image {
        height: 205px;
        padding: 15px;
    }

    .template-kit-card__templates-row--count-5 .template-kit-preview__image {
        height: 185px;
        padding: 13px;
    }

    .template-kit-card__templates-row--count-4 .template-kit-preview__footer,
    .template-kit-card__templates-row--count-5 .template-kit-preview__footer {
        min-height: 66px;
        padding: 11px 12px;
    }

    .template-kit-card__templates-row--count-5 .template-kit-preview__action {
        font-size: 11px;
    }
}

.template-kits-feedback {
    padding: 74px 0 82px;
    border-top: 1px solid #eedce4;
    background: linear-gradient(145deg, #fff7fa 0%, #f7fbff 100%);
}

.template-kits-feedback__inner {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
    gap: 70px;
    align-items: start;
}

.template-kits-feedback__copy > p {
    max-width: 470px;
    margin-top: 19px;
}

.template-kits-feedback__form {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid #eadfe5;
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 15px 40px rgba(43, 52, 67, .08);
}

.template-kits-field {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.template-kits-field span small {
    color: #98a2b3;
    font-weight: 500;
}

.template-kits-field input,
.template-kits-field textarea {
    width: 100%;
    border: 1px solid #d5dde6;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: var(--template-kits-ink);
    font: 14px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.template-kits-field input { height: 44px; padding: 0 13px; }
.template-kits-field textarea { min-height: 132px; padding: 12px 13px; resize: vertical; }

.template-kits-field input:focus,
.template-kits-field textarea:focus {
    border-color: var(--template-kits-blue);
    box-shadow: 0 0 0 3px rgba(36, 127, 195, .12);
}

.template-kits-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    color: #667085;
    font-size: 11px;
    line-height: 1.45;
}

.template-kits-consent input { margin: 2px 0 0; }
.template-kits-consent a { color: #bf0b52; text-decoration: underline; }

.template-kits-feedback__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.template-kits-feedback__status {
    color: #667085;
    font-size: 12px;
}

.template-kits-feedback__status.is-error { color: #b42318; }
.template-kits-feedback__status.is-success { color: #15803d; font-weight: 700; }

.template-kits-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
}

@media (max-width: 900px) {
    .template-kits-hero__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 58px 0 45px;
    }

    .template-kits-hero__visual {
        width: min(480px, 100%);
        min-height: 300px;
        margin: 12px auto 0;
    }

    .template-kits-section-heading,
    .template-kits-feedback__inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .template-kit-card__templates-row { grid-template-columns: 1fr 1fr; }
    .template-kit-card__templates-row.is-odd .template-kit-preview:last-child { grid-column: 1 / -1; }
    .template-kits-feedback__copy > p { max-width: none; }
}

@media (max-width: 620px) {
    .template-kits-shell { width: min(100% - 28px, 1180px); }
    .template-kits-hero h1 { font-size: 39px; }
    .template-kits-hero__copy > p { font-size: 16px; }
    .template-kits-hero__visual { min-height: 245px; transform: scale(.82); transform-origin: 50% 0; }
    .template-kits-catalog { padding: 56px 0 62px; }
    .template-kits-section-heading { margin-bottom: 24px; }
    .template-kit-card__header { grid-template-columns: 46px minmax(0, 1fr); padding: 18px; }
    .template-kit-card__number { width: 42px; height: 42px; }
    .template-kit-card__title h3 { font-size: 23px; }
    .template-kit-card__meta { display: none; }
    .template-kit-card__templates { padding: 12px; }
    .template-kit-card__templates-row { grid-template-columns: 1fr; }
    .template-kit-card__templates-row.is-odd .template-kit-preview:last-child { grid-column: auto; }
    .template-kit-preview__image { height: 230px; }
    .template-kits-feedback { padding: 55px 0 62px; }
    .template-kits-feedback__form { padding: 18px; }
    .template-kits-feedback__actions { align-items: flex-start; flex-direction: column; }
    .template-kits-feedback__actions .template-kits-primary-button { width: 100%; }
}

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