/*  ============================================================
    tier1-theme main stylesheet
    Phase 1: 1:1 header + footer rebuild.
    Single-file to save HTTP requests. ~8KB gzipped target.
    ============================================================ */

/* --- Reset --------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: #222;
    background: #fff;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin-top: 0; }

/* --- Header: top row (3 columns) ---------------------------- */

.t1-site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.t1-header-top {
    padding: 16px 0 8px;
}
.t1-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 20px;
    align-items: center;
}

.t1-col-brand { text-align: center; }
.t1-logo { max-width: 110px; max-height: 110px; margin: 0 auto; }

.t1-slogan {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #222;
}
.t1-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.t1-rating-score {
    font-weight: 700;
    font-size: 16px;
    color: #222;
}
.t1-rating-stars { flex: 0 0 auto; }
.t1-rating-count {
    font-size: 14px;
    color: #2563eb;
}
.t1-repeat { font-size: 14px; color: #16a34a; }
.t1-repeat strong { color: #16a34a; }

.t1-col-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    min-width: 300px;
}
.t1-contact-row {
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
    text-align: right;
}
.t1-email-row a { font-weight: 600; color: #2563eb; }
.t1-tg-link {
    color: #2563eb;
    font-weight: 600;
}
.t1-actions {
    margin-top: 4px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

/* --- Header: nav row (Тарифы / FAQ / Отзывы) ---------------- */

.t1-primary-nav {
    background: #fff;
    border-top: 1px solid #e5e7eb;
}
.t1-nav-list {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 80px;
    list-style: none;
}
.t1-nav-list a {
    display: inline-block;
    padding: 18px 8px;
    font-size: 22px;
    font-weight: 700;
    color: #18a6c4;
    letter-spacing: 0.2px;
}
.t1-nav-list a:hover {
    color: #2563eb;
    text-decoration: none;
}

/* --- Footer ---------------------------------------------------- */

.t1-site-footer {
    margin-top: 60px;
    background: #333;
    color: #d1d5db;
    padding: 40px 20px 20px;
}
.t1-footer-cols {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
.t1-footer-heading {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
    line-height: 1.1;
}
.t1-footer-heading small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #9ca3af;
    margin-top: 2px;
}
.t1-footer-col p { margin: 0 0 12px 0; }
.t1-footer-sub { color: #9ca3af; font-size: 14px; }

.t1-footer-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    width: 100%;
    max-width: 280px;
    transition: filter 0.15s ease;
}
.t1-footer-btn:hover { filter: brightness(1.1); text-decoration: none; }
.t1-footer-btn-tg { background: #22a6e8; }
.t1-footer-btn-tg-soft { background: #3b82f6; }

.t1-footer-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #d1d5db;
    font-size: 14px;
}
.t1-footer-payments span {
    background: #4b5563;
    padding: 4px 10px;
    border-radius: 4px;
}

.t1-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.t1-footer-links li { margin-bottom: 8px; }
.t1-footer-links a {
    color: #d1d5db;
    font-size: 14px;
}
.t1-footer-links a:hover { color: #fff; }

.t1-footer-legal {
    max-width: 1240px;
    margin: 40px auto 0;
    padding: 20px 0 0;
    border-top: 1px solid #4b5563;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
}
.t1-footer-policies {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.t1-footer-policies a {
    color: #93c5fd;
    text-decoration: underline;
    font-size: 13px;
}
.t1-footer-entity {
    margin-bottom: 10px;
    line-height: 1.7;
}
.t1-footer-copy { margin: 0; }
.t1-footer-copy a { color: #93c5fd; }

/* --- Main content area --------------------------------------- */

.t1-site-main { min-height: 40vh; }

/* Pages (homepage, landings) render full-width with a light grey canvas
   so the Elementor-fallback / future native sections have room for
   full-bleed backgrounds like on prod. Internal sections/paragraphs
   centre themselves via .tier1-entry-content. */
.tier1-content {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #f4f6f8;
}
.tier1-entry-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}
.tier1-entry-content h1 {
    font-size: 48px;
    margin: 0 0 12px 0;
    line-height: 1.15;
    text-align: center;
    color: #1a1a1a;
}
.tier1-entry-content h2 {
    font-size: 36px;
    margin: 48px 0 20px 0;
    line-height: 1.2;
    text-align: center;
    color: #1a1a1a;
}
.tier1-entry-content h3 {
    font-size: 22px;
    margin: 28px 0 12px 0;
    line-height: 1.3;
    color: #1f2937;
}
.tier1-entry-content h4 {
    font-size: 18px;
    margin: 20px 0 10px 0;
    line-height: 1.35;
    color: #374151;
}
.tier1-entry-content p {
    margin: 0 0 16px 0;
    font-size: 16px;
    line-height: 1.65;
    color: #374151;
}
.tier1-entry-content ul,
.tier1-entry-content ol {
    margin: 0 0 20px 24px;
    padding: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}
.tier1-entry-content li { margin-bottom: 6px; }
.tier1-entry-content a { color: #2563eb; }
.tier1-entry-content strong { color: #1a1a1a; }
.tier1-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
    font-size: 14px;
}
.tier1-entry-content th,
.tier1-entry-content td {
    border: 1px solid #d1d5db;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.tier1-entry-content th {
    background: #e5e7eb;
    font-weight: 600;
    color: #1a1a1a;
}
.tier1-entry-content tr:nth-child(even) td { background: #f9fafb; }
.tier1-entry-content img { margin: 16px auto; border-radius: 8px; }
.tier1-entry-content blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    font-style: italic;
    color: #1f2937;
}
.tier1-entry-content code {
    background: #e5e7eb;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, monospace;
    font-size: 13px;
}
.tier1-entry-content hr {
    border: 0;
    border-top: 1px solid #d1d5db;
    margin: 40px 0;
}

/* WooCommerce pages keep a constrained container — shop / cart /
   checkout grids expect a max-width anchor. */
.tier1-wc-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
}

/* ─── WooCommerce product page polish ──────────────────────────
   Cap the product image to a sane size (default WC lets it fill the
   column → on tariff pages the tiny 120×120 icon renders 700×700
   blurry). Fix the list bullets that rendered as literal ☑ because
   the source HTML has `☑1 ссылка` glued together. */

.single-product .woocommerce-product-gallery {
    max-width: 360px;
}
.single-product .woocommerce-product-gallery__image img,
.single-product .woocommerce-product-gallery img {
    max-width: 320px !important;
    max-height: 320px;
    margin: 0 auto;
    display: block;
    width: auto !important;
    height: auto !important;
}

/* Description list items — strip the native disc bullet and let the
   "☑" glyphs from the source content render as a proper leading icon
   with breathing space from the body text. */
.woocommerce-product-details__short-description ul,
.woocommerce-Tabs-panel--description ul,
#tab-description ul {
    list-style: none;
    padding-left: 4px;
}
.woocommerce-product-details__short-description ul li,
.woocommerce-Tabs-panel--description ul li,
#tab-description ul li {
    position: relative;
    padding: 4px 0 4px 26px;
    line-height: 1.6;
}
.woocommerce-product-details__short-description ul li::before,
.woocommerce-Tabs-panel--description ul li::before,
#tab-description ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 4px;
    color: #16a34a;
    font-weight: 700;
    font-size: 16px;
}

/* Related products thumbnails — when a product has no featured image,
   WC fills in a grey placeholder. Apply a subtle background+brand
   frame so the default doesn't read as "broken". */
.related.products .woocommerce-LoopProduct-link img,
.related.products img.attachment-woocommerce_thumbnail {
    background: #f4f6f8;
    padding: 16px;
    object-fit: contain;
    border-radius: 8px;
    max-height: 220px;
}

/* ============================================================
   Homepage (front-page.php) — native sections
   ============================================================ */

.tier1-home { background: #fff; }

.t1-section { padding: 60px 20px; background: #fff; }
.t1-section-alt { background: #f4f6f8; }
.t1-section-inner {
    max-width: 1120px;
    margin: 0 auto;
}
.t1-section h2 {
    font-size: 36px;
    margin: 0 0 32px 0;
    line-height: 1.2;
    color: #1a1a1a;
    text-align: center;
    font-weight: 700;
}

.t1-prose { max-width: 820px; margin: 0 auto; }
.t1-prose p { margin: 0 0 16px 0; font-size: 17px; line-height: 1.7; color: #374151; }
.t1-prose p.t1-lead {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin-top: 24px;
}
.t1-prose .t1-footnote {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    margin-top: 24px;
}

/* Hero --------------------------------------------------------- */

.t1-hero {
    padding: 80px 20px 60px;
    background: linear-gradient(180deg, #f4f6f8 0%, #e9eef2 100%);
    text-align: center;
}
.t1-hero-inner { max-width: 900px; margin: 0 auto; }
.t1-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px 0;
    color: #111827;
}
.t1-hero-sub {
    font-size: 22px;
    color: #4b5563;
    margin: 0 0 32px 0;
}
.t1-hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.t1-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
    border: 2px solid transparent;
}
.t1-btn:hover { text-decoration: none; transform: translateY(-1px); }
.t1-btn-primary {
    background: #18a6c4;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(24, 166, 196, .25);
}
.t1-btn-primary:hover {
    background: #1590aa;
    box-shadow: 0 6px 18px rgba(24, 166, 196, .35);
}
.t1-btn-outline {
    background: #fff;
    color: #18a6c4 !important;
    border-color: #18a6c4;
}
.t1-btn-outline:hover {
    background: #18a6c4;
    color: #fff !important;
}

/* "Что такое PBN" — 2-column layout (prod parity) ---------------
   Text on the left, huge red 35-50% on the right. No card chrome,
   just text matching the Elementor Tahoma 74.67px / #ff0000 spec. */
.t1-pbn-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}
.t1-pbn-text p { margin: 0 0 14px 0; font-size: 17px; line-height: 1.7; color: #374151; }
.t1-pbn-text .t1-footnote { font-size: 14px; color: #6b7280; font-style: italic; margin-top: 16px; }
.t1-pbn-stat {
    text-align: center;
    padding: 0 20px;
}
.t1-pbn-stat-value {
    font-family: tahoma, arial, helvetica, sans-serif;
    font-size: 75px;
    font-weight: 400;
    color: #ff0000;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.t1-pbn-stat-label {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.55;
    max-width: 320px;
    margin: 0 auto;
}
@media (max-width: 900px) {
    .t1-pbn-split { grid-template-columns: 1fr; gap: 20px; }
    .t1-pbn-stat-value { font-size: 56px; }
}

/* Benefits grid (6 cards) -------------------------------------- */

.t1-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}
.t1-benefit-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.t1-benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    border-color: #18a6c4;
}
.t1-benefit-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 16px;
    display: block;
    object-fit: contain;
}
.t1-benefit-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}
.t1-benefit-text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
}

/* Steps (Порядок работы) — prod parity: PNG icons on top, inline step
   number in the body, card layout with subtle hover lift. */

.t1-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.t1-steps-5 { grid-template-columns: repeat(5, 1fr); }

.t1-step {
    background: #fff;
    border-radius: 12px;
    padding: 24px 18px 22px;
    text-align: center;
    border: 1px solid #e5e7eb;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.t1-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    border-color: #18a6c4;
}

.t1-step-icon {
    width: 110px;
    height: 110px;
    margin: 0 auto 8px;
    display: block;
    object-fit: contain;
}
.t1-step-icon-svg {
    width: 110px;
    height: 110px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.t1-step-icon-svg svg { width: 78px; height: 78px; }

.t1-step-num-inline {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #18a6c4;
    margin-bottom: 6px;
}
.t1-step-num-inline::before { content: "Шаг "; color: #9ca3af; font-weight: 500; }

.t1-step-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.3;
    /* Reserve height for 2 lines so single- and double-line titles
       align across cards — prevents layout jitter. */
    min-height: 2.6em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.t1-step-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
}

/* Step inline preview — pushed to the card bottom so text aligns
   with neighbour cards that don't have a preview. */
.t1-step-preview {
    display: block;
    margin-top: auto;          /* flex: shove to bottom of card */
    padding-top: 14px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: border-color 0.15s ease, transform 0.15s ease;
    position: relative;
}
.t1-step-preview:hover { border-color: #18a6c4; transform: scale(1.02); text-decoration: none; }
.t1-step-preview img {
    width: 100%;
    height: auto;
    display: block;
}
.t1-step-preview-hint {
    position: absolute;
    bottom: 4px;
    right: 6px;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.t1-step-preview:hover .t1-step-preview-hint { opacity: 1; }

/* Native lightbox ------------------------------------------------ */
.t1-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    cursor: zoom-out;
}
.t1-lightbox[hidden] { display: none; }
.t1-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    cursor: default;
}
.t1-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 38px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.t1-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* Compare table (prod parity: 5-col SEO-method comparison) -------
   Green #43EA80 stars for strong ratings, dark grey stars for weak. */
.t1-compare-sub {
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    margin: -12px 0 28px;
}
.t1-compare-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.t1-compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
    min-width: 900px;
}
.t1-compare-table th,
.t1-compare-table td {
    padding: 14px 16px;
    text-align: center;
    border: 1px solid #cfe4ec;
    vertical-align: middle;
}
.t1-compare-table thead th {
    background: #cfe4ec;
    color: #1f2937;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    padding: 18px 14px;
}
.t1-compare-table thead th:first-child { background: #bcd9e3; }
.t1-compare-table td.t1-cmp-char {
    text-align: left;
    font-weight: 500;
    color: #1f2937;
}
.t1-compare-table tbody tr:nth-child(odd)  td { background: #eff6fa; }
.t1-compare-table tbody tr:nth-child(even) td { background: #ffffff; }

.t1-compare-table td.t1-cmp-score { white-space: nowrap; padding: 14px 10px; }
.t1-cmp-star {
    display: inline-block;
    font-size: 20px;
    margin: 0 1px;
    line-height: 1;
}
.t1-cmp-star-green { color: #43ea80; text-shadow: 0 1px 0 rgba(0, 0, 0, .05); }
.t1-cmp-star-dark  { color: #1f2937; }

/* ============================================================
   Tariff section — prod 1:1 rebuild
   Tabs + 4-card grid + dotted-tooltip lines + amber price pill
   + blue CTA + accordion spoiler under each tab.
   ============================================================ */

.t1-tariff-sub {
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    margin: -16px 0 22px;
}

/* Tabs ----------------------------------------------------------- */
.t1-tariff-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 940px;
    margin: 0 auto 0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: visible;
    position: relative;
}
.t1-tariff-tab {
    position: relative;
    padding: 18px 24px;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: #c4d1d6;
    color: #fff;
    border: 0;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.t1-tariff-tab:first-child { border-top-left-radius: 12px; }
.t1-tariff-tab:last-child  { border-top-right-radius: 12px; }
.t1-tariff-tab-ico { font-size: 24px; line-height: 1; }
.t1-tariff-tab:hover:not(.is-active) { background: #a8b7bd; }
.t1-tariff-tab.is-active {
    background: #fff;
    color: #1a1a1a;
    border-top: 3px solid #22c55e;
    padding-top: 15px;
}
/* Green arrow-indicator below active tab */
.t1-tariff-tab.is-active::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid #22c55e;
}
.t1-tariff-tab-new {
    position: absolute;
    top: 4px;
    right: -8px;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: none;
    letter-spacing: 0;
    transform: rotate(6deg);
}

/* Panes ---------------------------------------------------------- */
.t1-tariff-pane {
    display: none;
    background: #eaf3f5;
    padding: 28px 20px 20px;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid #e5e7eb;
}
.t1-tariff-pane.is-active { display: block; }

/* Grid — tighter gap to leave more room inside each card (Gold Elite
   had its "**" footnote wrapping otherwise). */
.t1-tariff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

/* Card — permanent soft shadow like the previous design the user liked. */
.t1-tariff-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px 16px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.t1-tariff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.t1-tariff-name {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.1;
}
/* Icon — cap by max dimensions so small source PNGs (58×75 bottle,
   135×75 wine glass) don't get upscaled past their natural size. */
.t1-tariff-icon {
    display: block;
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    margin: 0 auto 14px;
    object-fit: contain;
}
/* Head block wrapping qty + bonus lines — min-height keeps every card's
   hr divider on the same Y regardless of how many bonus rows there are. */
.t1-tariff-head {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.t1-tariff-qty {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 4px;
}
.t1-tariff-qty-num {
    font-size: 46px;
    font-weight: 400;
    color: #ef4444;
    margin-right: 6px;
    font-family: tahoma, arial, sans-serif;
    line-height: 1;
}
.t1-tariff-qty-unit { font-size: 15px; color: #6b7280; }
.t1-tariff-qty strong { color: #1a1a1a; font-weight: 700; }
.t1-tariff-bonus {
    font-size: 13px;
    color: #6b7280;
    margin-top: 3px;
    line-height: 1.35;
}
.t1-tariff-bonus-plus {
    font-size: 18px;
    font-weight: 700;
    color: #ef4444;
    margin-right: 2px;
    font-family: tahoma, arial, sans-serif;
}
.t1-tariff-bonus strong { color: #1a1a1a; font-weight: 700; }

.t1-tariff-hr {
    border: 0;
    border-top: 1px solid #d1d5db;
    width: 70%;
    margin: 16px auto;
}

.t1-tariff-features {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    flex-grow: 1;
}
.t1-tariff-features li {
    position: relative;
    padding: 4px 0 4px 22px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
}
.t1-tariff-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 5px;
    color: #22c55e;
    font-weight: 700;
    font-size: 14px;
}

/* Dotted-underline tooltip trigger ------------------------------ */
.t1-tip {
    border-bottom: 1px dotted #9ca3af;
    cursor: help;
    color: #2563eb;
    position: relative;
}
.t1-tip-qmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    font-size: 11px;
    font-weight: 700;
    margin-left: 4px;
    line-height: 1;
    vertical-align: middle;
}
/* Tooltip popup (pure CSS, triggers on hover / focus) */
.t1-tip::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    min-width: 240px;
    max-width: 320px;
    white-space: pre-line;
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 20;
    text-align: left;
    font-weight: 400;
    border-bottom: 0;
}
.t1-tip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 20;
}
.t1-tip:hover::after,
.t1-tip:focus::after,
.t1-tip:hover::before,
.t1-tip:focus::before {
    opacity: 1;
    visibility: visible;
}

/* Price pill + CTA ---------------------------------------------- */
.t1-tariff-price {
    margin: 16px -8px 10px;
    padding: 14px 12px;
    background: #fde047;
    border-radius: 8px;
    text-align: center;
    font-family: tahoma, arial, sans-serif;
}
.t1-tariff-price-old {
    color: #6b7280;
    font-size: 16px;
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 400;
}
.t1-tariff-price-now {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
}
.t1-tariff-btn {
    display: block;
    padding: 12px 20px;
    background: #3b82f6;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, transform 0.1s ease;
    cursor: pointer;
    border: 0;
}
.t1-tariff-btn:hover { background: #2563eb; color: #fff; text-decoration: none; }
.t1-tariff-btn.loading { opacity: 0.7; pointer-events: none; }
.t1-tariff-btn.is-added,
.t1-tariff-btn.added { background: #16a34a; }
.t1-tariff-btn.added::after {
    content: " \2713";
}

/* ─── Cart toast (bottom-right) ─────────────────────────────── */
.t1-cart-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: 360px;
    min-width: 280px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #16a34a;
    border-radius: 10px;
    padding: 14px 40px 14px 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    z-index: 9998;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 14px;
    color: #1f2937;
}
.t1-cart-toast.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.t1-cart-toast-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    line-height: 1.4;
}
.t1-cart-toast-ico {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    flex: 0 0 24px;
}
.t1-cart-toast-cta {
    display: block;
    background: #16a34a;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s ease;
}
.t1-cart-toast-cta:hover { background: #15803d; text-decoration: none; }
.t1-cart-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}
.t1-cart-toast-close:hover { background: #f3f4f6; color: #1f2937; }

@media (max-width: 560px) {
    .t1-cart-toast { left: 12px; right: 12px; max-width: none; bottom: 12px; }
}

/* ─── Cart page polish ──────────────────────────────────────────
   Soften default WC table (no harsh black borders), tidy totals
   box, big purple checkout, hide cross-sells (user request). */

.woocommerce-cart .cross-sells { display: none; }

.woocommerce-cart .woocommerce-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px 22px;
    color: #475569;
    margin-bottom: 24px;
    font-size: 15px;
    text-align: center;
}
.woocommerce-cart .woocommerce-info::before {
    display: none;  /* hide WC's FontAwesome icon — not loaded */
}
/* "Вернуться в магазин" button — make it primary blue */
.woocommerce-cart .return-to-shop .button {
    display: inline-block;
    padding: 12px 22px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.woocommerce-cart .return-to-shop .button:hover {
    background: #1d4ed8;
    color: #fff;
}
.woocommerce-cart .return-to-shop {
    text-align: center;
    margin-top: 16px;
}

.woocommerce-cart table.shop_table {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    border-collapse: separate;
    border-spacing: 0;
}
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 14px;
    background: transparent;
    vertical-align: middle;
}
.woocommerce-cart table.shop_table thead th {
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
    text-align: left;
}
.woocommerce-cart table.shop_table tbody tr:last-child td { border-bottom: 0; }
.woocommerce-cart .cart-collaterals .shop_table { background: #fff; }
.woocommerce-cart td.product-thumbnail img { max-width: 64px; height: auto; }
.woocommerce-cart td.product-remove a.remove {
    color: #9ca3af !important;
    font-size: 18px;
    background: transparent !important;
}
.woocommerce-cart td.product-remove a.remove:hover { color: #dc2626 !important; }
.woocommerce-cart td.product-name a { color: #1f2937; font-weight: 500; }
.woocommerce-cart td.product-price,
.woocommerce-cart td.product-subtotal { color: #1f2937; font-variant-numeric: tabular-nums; }

.woocommerce-cart .quantity input.qty {
    width: 64px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 8px;
    background: #fff;
}

.woocommerce-cart .actions {
    background: transparent !important;
    padding: 18px 0 0 !important;
    border: 0 !important;
}
.woocommerce-cart .actions::after { content: ""; display: table; clear: both; }
.woocommerce-cart .coupon {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
}
.woocommerce-cart .coupon input#coupon_code {
    border: 0;
    padding: 10px 14px;
    width: 160px;
    background: transparent;
    outline: none;
}
.woocommerce-cart .coupon button[name="apply_coupon"] {
    background: #6366f1;
    color: #fff;
    border: 0;
    padding: 10px 22px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
}
.woocommerce-cart .coupon button[name="apply_coupon"]:hover { background: #4f46e5; }

.woocommerce-cart button[name="update_cart"] {
    background: #c7d2fe;
    color: #fff;
    border: 0;
    padding: 12px 22px;
    font-weight: 600;
    border-radius: 6px;
    float: right;
    cursor: pointer;
}
.woocommerce-cart button[name="update_cart"]:not(:disabled) { background: #6366f1; }
.woocommerce-cart button[name="update_cart"]:not(:disabled):hover { background: #4f46e5; }

.woocommerce-cart .cart-collaterals {
    margin-top: 32px;
}
.woocommerce-cart .cart-collaterals .cart_totals { float: right; width: 48%; }
.woocommerce-cart .cart-collaterals .cart_totals h2 {
    font-size: 22px;
    margin: 0 0 14px;
    color: #1f2937;
}
.woocommerce-cart .cart-collaterals .cart_totals .order-total td,
.woocommerce-cart .cart-collaterals .cart_totals .order-total th {
    font-size: 16px;
    font-weight: 700;
}
.woocommerce-cart .wc-proceed-to-checkout { padding-top: 16px; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    background: #6366f1;
    color: #fff !important;
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 0;
    transition: background 0.15s ease;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover { background: #4f46e5; }

@media (max-width: 768px) {
    .woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; }
    .woocommerce-cart .coupon { flex-wrap: wrap; }
    .woocommerce-cart .coupon input#coupon_code { width: 100%; }
    .woocommerce-cart button[name="update_cart"] { float: none; width: 100%; margin-top: 12px; }
}

/* Spoiler -------------------------------------------------------- */
.t1-tariff-spoiler {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
}
.t1-tariff-spoiler summary {
    padding: 16px 22px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 48px;
}
.t1-tariff-spoiler summary::-webkit-details-marker { display: none; }
.t1-tariff-spoiler summary::before {
    content: "+";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #18a6c4;
    font-weight: 400;
    display: none;
}
.t1-tariff-spoiler summary::after {
    content: "\25BC";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #18a6c4;
    font-size: 12px;
    transition: transform 0.2s ease;
}
.t1-tariff-spoiler[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}
.t1-tariff-spoiler-body {
    padding: 4px 22px 22px;
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
    border-top: 1px solid #e5e7eb;
}
.t1-tariff-spoiler-body p { margin: 14px 0; }
.t1-tariff-spoiler-body p:first-child { margin-top: 14px; }
.t1-tariff-niche-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 16px;
    margin: 10px 0 16px 0;
    padding-left: 20px;
}
.t1-tariff-niche-list li {
    font-weight: 600;
    color: #1a1a1a;
}

@media (max-width: 1200px) and (min-width: 901px) {
    .t1-tariff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .t1-tariff-grid { grid-template-columns: 1fr; }
    .t1-tariff-tab { font-size: 16px; padding: 14px 12px; }
    .t1-tariff-name { font-size: 22px; }
    .t1-tariff-niche-list { grid-template-columns: 1fr; }
    .t1-tip::after { min-width: 200px; max-width: 260px; font-size: 11px; }
}

/* Audience grid ---------------------------------------------- */

.t1-audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.t1-audience-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.t1-audience-card:hover {
    transform: translateY(-2px);
    border-color: #18a6c4;
}
.t1-audience-icon { font-size: 36px; margin-bottom: 10px; }
.t1-audience-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.t1-audience-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

/* FAQ accordion --------------------------------------------- */

.t1-faq {
    max-width: 820px;
    margin: 0 auto;
}
.t1-faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.15s ease;
}
.t1-faq-item[open] { border-color: #18a6c4; }
.t1-faq-question {
    padding: 18px 22px;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 48px;
}
.t1-faq-question::-webkit-details-marker { display: none; }
.t1-faq-question::after {
    content: '+';
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #18a6c4;
    font-weight: 400;
    transition: transform 0.2s ease;
}
.t1-faq-item[open] .t1-faq-question::after {
    content: '−';
}
.t1-faq-answer {
    padding: 0 22px 20px;
    font-size: 16px;
    line-height: 1.65;
    color: #4b5563;
}

/* Intermediate: 5 steps at 1200px get cramped (5 × ~220px each).
   Drop to 3-column so cards stay readable; the 4th/5th wrap naturally. */
@media (max-width: 1200px) and (min-width: 901px) {
    .t1-steps-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .t1-hero-title { font-size: 36px; }
    .t1-hero-sub { font-size: 18px; }
    .t1-section h2 { font-size: 28px; }
    .t1-benefits-grid { grid-template-columns: 1fr; }
    .t1-steps { grid-template-columns: repeat(2, 1fr); }
    .t1-steps-5 { grid-template-columns: repeat(2, 1fr); }
    .t1-tariff-grid { grid-template-columns: repeat(2, 1fr); }
    .t1-audience-grid { grid-template-columns: repeat(2, 1fr); }
    .t1-compare-table { font-size: 13px; }
    .t1-compare-table th, .t1-compare-table td { padding: 10px 8px; }
}
@media (max-width: 560px) {
    .t1-tariff-grid { grid-template-columns: 1fr; }
    .t1-steps { grid-template-columns: 1fr; }
    .t1-audience-grid { grid-template-columns: 1fr; }
}

/* --- Responsive --------------------------------------------- */

@media (max-width: 900px) {
    .t1-header-inner {
        grid-template-columns: 100px 1fr;
        gap: 12px;
    }
    .t1-col-contact {
        grid-column: 1 / -1;
        align-items: flex-start;
        min-width: 0;
    }
    .t1-contact-row { text-align: left; }
    .t1-actions { justify-content: flex-start; }
    .t1-nav-list {
        gap: 24px;
    }
    .t1-nav-list a {
        font-size: 18px;
        padding: 14px 4px;
    }
    .t1-footer-cols {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ─── Generic policy/info spoilers (used on /checkout-2/ and similar
       static info pages where Elementor accordions used to live).
       Plain HTML5 <details>/<summary> — no JS, accessible, semantic. ── */
.t1-policy-spoiler {
    margin: 12px 0;
    border: 1px solid #e3e6ec;
    border-radius: 8px;
    background: #f9fafc;
    overflow: hidden;
}
.t1-policy-spoiler summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 16px;
    color: #1f3554;
    list-style: none;
    position: relative;
    user-select: none;
    transition: background-color 120ms ease;
    padding-right: 44px;
}
.t1-policy-spoiler summary::-webkit-details-marker { display: none; }
.t1-policy-spoiler summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    line-height: 1;
    color: #6b7a99;
    font-weight: 400;
    transition: transform 200ms ease;
}
.t1-policy-spoiler[open] summary::after {
    content: "−";
}
.t1-policy-spoiler summary:hover {
    background: #f1f4f9;
}
.t1-policy-spoiler[open] summary {
    border-bottom: 1px solid #e3e6ec;
    background: #f1f4f9;
}
.t1-policy-spoiler > p,
.t1-policy-spoiler > div {
    margin: 12px 18px;
    color: #3a4a66;
    line-height: 1.55;
    font-size: 14px;
}
.t1-policy-spoiler > p:first-of-type { margin-top: 14px; }
.t1-policy-spoiler > p:last-of-type { margin-bottom: 14px; }
.t1-policy-spoiler a {
    color: #1f3554;
    text-decoration: underline;
}

/* ─── WooCommerce Checkout: 2-column layout (grid-template-areas)
       LEFT (1fr): customer details, link-input widget, telegram block
       RIGHT (380px): order review heading + table + payment + place order
       customer_details spans both rows so heading and review stack
       directly under each other in the right column without gaps. ── */
@media (min-width: 901px) {
    .woocommerce-checkout form.checkout.woocommerce-checkout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        grid-template-areas:
            "main aside-h"
            "main aside";
        column-gap: 32px;
        align-items: start;
    }
    .woocommerce-checkout form.checkout > #customer_details {
        grid-area: main;
    }
    .woocommerce-checkout form.checkout > h3#order_review_heading {
        grid-area: aside-h;
        margin: 0 0 12px 0;
    }
    .woocommerce-checkout form.checkout > #order_review {
        grid-area: aside;
        background: #fff;
        border: 1px solid #e3e6ec;
        border-radius: 10px;
        padding: 16px 18px;
        align-self: start;
        position: sticky;
        top: 20px;
    }
    /* Inside customer_details: stack col-1/col-2 vertically (digital, no shipping) */
    .woocommerce-checkout #customer_details.col2-set {
        display: block;
    }
    .woocommerce-checkout #customer_details > .col-1,
    .woocommerce-checkout #customer_details > .col-2 {
        width: 100%;
        max-width: none;
        float: none;
        padding: 0;
    }
    /* Order review styling */
    #order_review .shop_table {
        width: 100%;
        font-size: 14px;
        border-collapse: collapse;
        margin-bottom: 16px;
    }
    #order_review .shop_table th,
    #order_review .shop_table td {
        padding: 10px 8px;
        border-bottom: 1px solid #eef0f4;
    }
    #order_review .shop_table tfoot tr.order-total td {
        font-size: 16px;
        font-weight: 700;
    }
    #order_review #payment {
        background: transparent;
    }
    #order_review #place_order {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 8px;
    }
}

/* Mobile: stack normally */
@media (max-width: 900px) {
    .woocommerce-checkout form.checkout.woocommerce-checkout {
        display: block;
    }
    .woocommerce-checkout form.checkout > #order_review {
        margin-top: 24px;
    }
}

