:root {
    --p-blue: #2d74ba;
    --p-blue-dark: #164c86;
    --p-sky: #36aeea;
    --p-ink: #111927;
    --p-muted: #687487;
    --p-line: #dfe8f2;
    --p-bg: #f4f7fb;
    --p-card: #fff;
    --p-green: #21a66b;
}

* { box-sizing: border-box; }

body.partex-page {
    margin: 0;
    background: var(--p-bg);
    color: var(--p-ink);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.index2-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

.test-header {
    position: relative;
    z-index: 20;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 32px rgba(22, 76, 134, 0.08);
}

.test-topbar {
    border-bottom: 1px solid var(--p-line);
    font-size: 13px;
    color: var(--p-muted);
}

.test-topbar__inner,
.test-topbar__links,
.test-topbar__meta,
.test-actions {
    display: flex;
    align-items: center;
}

.test-topbar__inner {
    justify-content: space-between;
    min-height: 38px;
    gap: 16px;
}

.test-topbar__links,
.test-topbar__meta {
    gap: 18px;
    flex-wrap: wrap;
}

.test-topbar a { color: var(--p-ink); }

.test-header-main {
    display: grid;
    grid-template-columns: 190px minmax(260px, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 86px;
}

.test-logo img {
    width: 178px;
    max-width: 100%;
}

.test-search {
    display: flex;
    min-height: 52px;
    overflow: hidden;
    border: 1px solid var(--p-line);
    border-radius: 16px;
    background: #f7f9fc;
}

.test-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 18px;
    background: transparent;
    color: var(--p-ink);
    font-size: 14px;
}

.test-search button {
    width: 58px;
    border: 0;
    background: var(--p-blue);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.test-actions {
    justify-content: flex-end;
    gap: 10px;
}

.test-phone {
    display: grid;
    gap: 2px;
    line-height: 1.2;
    white-space: nowrap;
}

.test-phone strong { font-size: 17px; font-weight: 600; }
.test-phone span { color: var(--p-muted); font-size: 12px; }

.test-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--p-line);
    color: var(--p-blue);
    background: #fff;
    font-size: 17px;
}

.test-icon-btn--cart {
    background: var(--p-ink);
    border-color: var(--p-ink);
    color: #fff;
}

.test-icon-btn__count {
    position: absolute;
    top: -5px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--p-sky);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.test-callback {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #eaf7ff;
    color: #145c96;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.test-footer {
    margin-top: 54px;
    background: #fff;
    border-top: 1px solid var(--p-line);
    box-shadow: 0 -12px 34px rgba(22, 76, 134, 0.05);
}

.test-footer__top {
    display: grid;
    grid-template-columns: 1.25fr 0.9fr 0.95fr 1fr;
    gap: 42px;
    padding: 48px 0 38px;
}

.test-footer__brand img {
    width: 190px;
    max-width: 100%;
    margin-bottom: 18px;
}

.test-footer__brand p,
.test-footer__text {
    color: var(--p-muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.test-footer__socials {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-top: 20px;
}

.test-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--p-line);
    color: var(--p-ink);
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    white-space: nowrap;
}

.test-footer__socials a:nth-child(1) i { color: #7360f2; }
.test-footer__socials a:nth-child(2) i { color: #229ed9; }
.test-footer__socials a:nth-child(3) i { color: #21a66b; }

.test-footer__title {
    margin: 0 0 16px;
    color: var(--p-ink);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
}

.test-footer__links,
.test-footer__contact {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.test-footer__links a,
.test-footer__contact a,
.test-footer__contact span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--p-muted);
    font-size: 14px;
    line-height: 1.45;
}

.test-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
    border-top: 1px solid var(--p-line);
    color: var(--p-muted);
    font-size: 14px;
}

.test-footer__pay {
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-footer__pay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--p-line);
    background: #f7f9fc;
    color: var(--p-ink);
    font-size: 12px;
    font-weight: 600;
}

.page-main { padding: 34px 0 10px; }

.page-hero,
.cart-panel,
.info-panel {
    border: 1px solid var(--p-line);
    border-radius: 20px;
    background: var(--p-card);
    box-shadow: 0 16px 38px rgba(22, 76, 134, 0.07);
}

.page-hero {
    padding: 30px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #eef7ff 100%);
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
    font-weight: 650;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--p-muted);
    font-size: 15px;
    line-height: 1.7;
}

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

.cart-panel { padding: 22px; }

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--p-line);
    border-radius: 16px;
    background: #fbfdff;
}

.cart-item img {
    width: 96px;
    height: 76px;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.cart-item h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.cart-item p {
    margin: 0;
    color: var(--p-muted);
    font-size: 13px;
}

.cart-remove {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff0f0;
    color: #c73737;
    cursor: pointer;
}

.cart-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.cart-form label {
    display: grid;
    gap: 6px;
    color: var(--p-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cart-form input,
.cart-form select,
.cart-summary input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--p-line);
    border-radius: 13px;
    padding: 0 14px;
    outline: 0;
    background: #f7f9fc;
    color: var(--p-ink);
}

.cart-checkout-note {
    grid-column: 1 / -1;
    padding: 14px 16px;
    border: 1px solid rgba(45, 116, 186, 0.2);
    border-radius: 13px;
    background: #eef7ff;
    color: var(--p-blue-dark);
    font-size: 13px;
    line-height: 1.6;
}

.cart-summary {
    position: sticky;
    top: 18px;
}

.cart-summary__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--p-line);
}

.cart-summary__name {
    min-width: 0;
    color: var(--p-ink);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 600;
}

.cart-summary__price {
    display: grid;
    gap: 4px;
    min-width: 112px;
    text-align: right;
    white-space: nowrap;
}

.cart-summary__price span {
    color: var(--p-muted);
    font-size: 12px;
}

.cart-summary__price strong {
    color: var(--p-blue-dark);
    font-size: 15px;
    font-weight: 700;
}

.cart-summary__total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--p-line);
    color: var(--p-muted);
    font-size: 14px;
}

.cart-summary__total {
    color: var(--p-ink);
    font-size: 18px;
    font-weight: 700;
}

.cart-submit,
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    border: 0;
    border-radius: 13px;
    background: var(--p-blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cart-empty {
    padding: 34px;
    text-align: center;
}

.info-panel {
    padding: 28px;
    color: var(--p-muted);
    font-size: 15px;
    line-height: 1.75;
}

.thankyou-page {
    min-height: 520px;
    display: flex;
    align-items: center;
}

.thankyou-page .index2-wrap {
    width: 100%;
}

.thankyou-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 280px;
    align-items: center;
    gap: 26px;
    padding: 34px;
    border: 1px solid var(--p-line);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(239,247,255,0.96) 58%, rgba(255,255,255,0.96) 100%);
    box-shadow: 0 18px 44px rgba(22, 76, 134, 0.08);
}

.thankyou-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background: #eafaf2;
    color: var(--p-green);
    font-size: 34px;
}

.thankyou-panel__eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--p-blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.thankyou-panel h1 {
    max-width: 720px;
    margin: 0;
    color: var(--p-ink);
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.12;
    font-weight: 700;
}

.thankyou-panel p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--p-muted);
    font-size: 15px;
    line-height: 1.75;
}

.thankyou-panel__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.thankyou-panel__actions .page-btn {
    width: auto;
    margin-top: 0;
    padding: 0 20px;
}

.thankyou-panel__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 13px;
    border: 1px solid var(--p-line);
    background: #fff;
    color: var(--p-blue);
    font-size: 14px;
    font-weight: 650;
}

.thankyou-panel__contacts {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--p-line);
    border-radius: 18px;
    background: #fff;
}

.thankyou-panel__contacts strong {
    color: var(--p-ink);
    font-size: 15px;
}

.thankyou-panel__contacts > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--p-blue-dark);
    font-weight: 700;
}

.thankyou-panel__contacts div {
    display: flex;
    gap: 8px;
}

.thankyou-panel__contacts div a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--p-line);
    border-radius: 50%;
    background: #fff;
    font-size: 17px;
}

.thankyou-panel__contacts div a:nth-child(1) { color: #7360f2; }
.thankyou-panel__contacts div a:nth-child(2) { color: #229ed9; }
.thankyou-panel__contacts div a:nth-child(3) { color: #21a66b; }

.info-panel + .info-panel,
.info-grid + .info-panel {
    margin-top: 18px;
}

.info-panel h2,
.info-panel h3 {
    color: var(--p-ink);
    margin-top: 0;
}

.info-panel h2 {
    margin-bottom: 12px;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.2;
    font-weight: 650;
}

.info-panel p {
    margin: 0 0 12px;
}

.info-panel p:last-child {
    margin-bottom: 0;
}

.info-panel--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: center;
}

.info-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    margin-bottom: 12px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eaf7ff;
    color: var(--p-blue-dark);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
}

.info-highlight {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--p-line);
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
}

.info-highlight strong {
    color: var(--p-ink);
    font-size: 28px;
    line-height: 1;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f7fbff;
    color: var(--p-ink);
}

.info-list i {
    margin-top: 4px;
    color: var(--p-blue);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.info-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card {
    padding: 18px;
    border: 1px solid var(--p-line);
    border-radius: 16px;
    background: #fff;
}

.info-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 13px;
    background: #eaf7ff;
    color: var(--p-blue);
    font-size: 18px;
}

.info-card h3 {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 650;
}

.info-card p {
    margin: 0;
}

.info-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    counter-reset: info-step;
    margin-top: 18px;
}

.info-step {
    position: relative;
    min-height: 168px;
    padding: 20px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--p-ink);
    color: #fff;
    counter-increment: info-step;
}

.info-step::before {
    content: "0" counter(info-step);
    position: absolute;
    right: 14px;
    top: 8px;
    color: rgba(255,255,255,0.1);
    font-size: 54px;
    line-height: 1;
}

.info-step h3 {
    position: relative;
    margin: 0 0 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.info-step p {
    position: relative;
    margin: 0;
    color: rgba(255,255,255,0.72);
    font-size: 14px;
    line-height: 1.55;
}

.info-note {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(45, 116, 186, 0.2);
    border-radius: 16px;
    background: #eef7ff;
    color: var(--p-blue-dark);
}

.site-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(17, 25, 39, 0.56);
}

.site-modal.is-open { display: flex; }

.site-modal__box {
    width: min(440px, 100%);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(17, 25, 39, 0.24);
    overflow: hidden;
}

.site-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--p-line);
}

.site-modal__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 650;
}

.site-modal__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f7fb;
    color: var(--p-ink);
    cursor: pointer;
}

.site-modal__body {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.site-modal__body p {
    margin: 0;
    color: var(--p-muted);
    font-size: 14px;
    line-height: 1.6;
}

.site-modal__body input,
.site-modal__body textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--p-line);
    border-radius: 13px;
    padding: 0 14px;
    outline: 0;
    background: #f7f9fc;
    color: var(--p-ink);
}

.site-modal__body button[type="submit"] {
    min-height: 48px;
    border: 0;
    border-radius: 13px;
    background: var(--p-blue);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 1020px) {
    .test-header-main { grid-template-columns: 170px minmax(0, 1fr) auto; }
    .test-phone, .test-callback { display: none; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .info-panel--split { grid-template-columns: 1fr; }
    .thankyou-panel { grid-template-columns: auto minmax(0, 1fr); }
    .thankyou-panel__contacts { grid-column: 1 / -1; }
    .info-grid,
    .info-grid--four,
    .info-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .test-topbar { overflow: hidden; }
    .test-topbar__inner { display: block; min-height: 38px; padding: 0; }
    .test-topbar__links {
        display: flex;
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 11px 16px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .test-topbar__links::-webkit-scrollbar { display: none; }
    .test-topbar__meta { display: none; }
    .test-header-main {
        grid-template-columns: 1fr auto;
        gap: 10px;
        padding: 14px 0;
    }
    .test-logo img { width: 156px; }
    .test-search { grid-column: 1 / -1; grid-row: 2; order: 3; }
    .test-actions { grid-column: 2; grid-row: 1; justify-self: end; }
    .test-actions .test-icon-btn:not(.test-icon-btn--cart) { display: none; }
    .page-main { padding-top: 18px; }
    .page-hero, .cart-panel, .info-panel { border-radius: 16px; padding: 20px; }
    .thankyou-page { min-height: auto; align-items: flex-start; }
    .thankyou-panel { grid-template-columns: 1fr; gap: 18px; padding: 22px; border-radius: 18px; }
    .thankyou-panel__icon { width: 62px; height: 62px; border-radius: 18px; font-size: 28px; }
    .thankyou-panel__actions { align-items: stretch; flex-direction: column; }
    .thankyou-panel__actions .page-btn,
    .thankyou-panel__link { width: 100%; }
    .cart-item { grid-template-columns: 72px minmax(0, 1fr) 38px; gap: 10px; padding: 12px; }
    .cart-item img { width: 72px; height: 60px; }
    .cart-item h3 { font-size: 13px; }
    .cart-remove { width: 38px; height: 38px; }
    .cart-summary__row { grid-template-columns: 1fr; gap: 8px; }
    .cart-summary__price { text-align: left; }
    .cart-form, .info-grid, .info-grid--four, .info-steps, .test-footer__top { grid-template-columns: 1fr; }
    .test-footer__socials { flex-wrap: wrap; }
    .test-footer__bottom { align-items: flex-start; flex-direction: column; padding: 16px 0; }
}
