/* ==========================================================================
   PACKAGES PAGE  (EN /packages/  ·  RU /ru/pakety/  ·  IT /it/pacchetti/)
   Loaded after /assets/css/style.css. Every selector is prefixed with pk-
   so nothing here can collide with the rest of the site.
   Palette and type stack are inherited from style.css.
   ========================================================================== */

.pk-page {
    --pk-ink: #0f172a;
    --pk-text: #334155;
    --pk-muted: #64748b;
    --pk-line: #e2e8f0;
    --pk-soft: #f8fafc;
    --pk-blue: #2563eb;
    --pk-blue-dark: #1d4ed8;
    --pk-blue-soft: rgba(37, 99, 235, 0.07);
    --pk-gold: #9a721d;
    --pk-gold-line: #c5a059;
    --pk-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E");
    --pk-check-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23b38728' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E");
    color: var(--pk-text);
}

.pk-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.pk-page a:focus-visible,
.pk-page summary:focus-visible,
.pk-scroll:focus-visible {
    outline: 2px solid var(--pk-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Hero ------------------------------------------------------------- */
.pk-hero {
    background: var(--pk-soft);
    border-bottom: 1px solid var(--pk-line);
    padding: 36px 0 44px;
}

.pk-crumbs {
    font-size: 0.875rem;
    color: var(--pk-muted);
    margin-bottom: 22px;
}
.pk-crumbs a { color: inherit; text-decoration: none; }
.pk-crumbs a:hover { color: var(--pk-blue); text-decoration: underline; }
.pk-crumbs span[aria-hidden] { margin: 0 8px; }

.pk-hero h1 {
    font-size: clamp(2rem, 4.6vw, 2.75rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pk-ink);
    max-width: 40ch;
}

.pk-lead {
    margin-top: 16px;
    max-width: 64ch;
    font-size: 1.1rem;
    line-height: 1.65;
}

.pk-prompt {
    margin: 30px 0 12px;
    font-weight: 700;
    color: var(--pk-ink);
}

.pk-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.pk-pill {
    display: inline-block;
    padding: 9px 16px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: var(--pk-ink);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.pk-pill:hover { border-color: var(--pk-blue); color: var(--pk-blue); }

/* ---- Sections --------------------------------------------------------- */
.pk-main { padding-bottom: 80px; }

.pk-section {
    padding-top: 60px;
    scroll-margin-top: 84px;
}

.pk-section-head h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--pk-ink);
}
.pk-section-head p {
    margin-top: 10px;
    max-width: 66ch;
    color: var(--pk-muted);
    line-height: 1.6;
}

/* ---- Package cards ---------------------------------------------------- */
.pk-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
}
@media (min-width: 700px)  { .pk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pk-grid { grid-template-columns: repeat(3, 1fr); } }

.pk-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--pk-line);
    border-radius: 12px;
    padding: 28px 26px 26px;
    scroll-margin-top: 92px;
}

.pk-card--feature {
    border: 2px solid var(--pk-blue);
    padding: 27px 25px 25px;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.06);
}

.pk-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 4px 10px;
    background: var(--pk-blue-soft);
    border-radius: 6px;
    color: var(--pk-blue);
    font-size: 0.8rem;
    font-weight: 700;
}
/* On cards the tag straddles the top border, so every card in a row keeps identical row positions */
.pk-card { position: relative; }
.pk-card > .pk-tag {
    position: absolute;
    top: -13px;
    left: 22px;
    margin: 0;
    padding: 4px 12px;
    background: var(--pk-blue);
    color: #fff;
}

.pk-card h3 {
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 800;
    color: var(--pk-ink);
}

.pk-for {
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--pk-muted);
}

.pk-price {
    margin: 22px 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pk-line);
}
.pk-price-note {
    display: block;
    font-size: 0.85rem;
    color: var(--pk-muted);
}
.pk-price-amount {
    display: block;
    font-size: 2.25rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
    color: var(--pk-ink);
}

.pk-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 26px;
}
.pk-list li {
    position: relative;
    padding-left: 28px;
    font-size: 0.95rem;
    line-height: 1.4;
}
.pk-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 18px;
    height: 18px;
    background: var(--pk-check) center / 16px no-repeat;
}
.pk-list li.pk-off { color: var(--pk-muted); }
.pk-list li.pk-off::before {
    background: none;
    top: 0.72em;
    left: 3px;
    width: 10px;
    height: 0;
    border-top: 2px solid #cbd5e1;
}
.pk-list li.pk-fees {
    margin-top: 4px;
    padding: 9px 12px 9px 40px;
    background: rgba(2, 132, 199, 0.07);
    border-radius: 6px;
    color: #0369a1;
    font-weight: 700;
}
.pk-list li.pk-fees::before { left: 14px; top: 0.75em; }

/* Keep price and checklist rows level across a row of cards, whatever the language */
@media (min-width: 1040px) {
    .pk-card > .pk-for { min-height: 3em; }
    html[lang="ru"] .pk-card > .pk-for,
    html[lang="it"] .pk-card > .pk-for { min-height: 4.5em; }
}

/* Buttons: one system, three weights */
.pk-btn {
    display: block;
    margin-top: auto;
    padding: 13px 18px;
    background: var(--pk-blue);
    border: 2px solid var(--pk-blue);
    border-radius: 8px;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.pk-btn:hover { background: var(--pk-blue-dark); border-color: var(--pk-blue-dark); }
.pk-btn--ghost { background: #fff; color: var(--pk-blue); }
.pk-btn--ghost:hover { background: var(--pk-blue-soft); border-color: var(--pk-blue); }
.pk-btn--dark { background: var(--pk-ink); border-color: var(--pk-ink); }
.pk-btn--dark:hover { background: #1e293b; border-color: #1e293b; }
.pk-btn--inline { display: inline-block; margin-top: 0; }

/* ---- Fast-Track ------------------------------------------------------- */
.pk-fast {
    display: grid;
    gap: 28px;
    margin-top: 28px;
    padding: 30px;
    background: #fff;
    border: 2px solid var(--pk-gold-line);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(187, 149, 63, 0.12);
    scroll-margin-top: 92px;
}
@media (min-width: 900px) {
    .pk-fast { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 34px 36px; }
}
.pk-fast .pk-tag {
    background: rgba(189, 149, 63, 0.1);
    color: var(--pk-gold);
}
.pk-fast .pk-list { margin-bottom: 0; }
.pk-fast .pk-list li::before { background-image: var(--pk-check-gold); }
.pk-fast .pk-list li.pk-fees { color: var(--pk-gold); background: rgba(189, 149, 63, 0.09); }

.pk-fast-opts { display: grid; gap: 14px; }
.pk-fast-opt {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    padding: 16px 18px;
    border: 1px solid var(--pk-line);
    border-radius: 10px;
}
.pk-fast-opt .pk-price { margin: 0; padding: 0; border: 0; }
.pk-fast-opt .pk-price-note { margin-bottom: 2px; }
.pk-fast-opt .pk-price-amount { font-size: 1.75rem; }

/* ---- Individual services --------------------------------------------- */
.pk-addons {
    list-style: none;
    margin-top: 28px;
    background: #fff;
    border: 1px solid var(--pk-line);
    border-radius: 12px;
    overflow: hidden;
}
.pk-addon {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 24px;
    align-items: center;
    padding: 20px 24px;
}
.pk-addon + .pk-addon { border-top: 1px solid var(--pk-line); }
@media (min-width: 820px) {
    .pk-addon { grid-template-columns: 1fr 150px auto; }
}
.pk-addon h3 { font-size: 1.05rem; font-weight: 700; color: var(--pk-ink); }
.pk-addon h3 a { color: inherit; text-decoration: none; }
.pk-addon h3 a:hover { color: var(--pk-blue); text-decoration: underline; }
.pk-addon p { margin-top: 4px; font-size: 0.93rem; color: var(--pk-muted); line-height: 1.5; }
.pk-addon-price { font-size: 1.2rem; font-weight: 800; color: var(--pk-ink); font-variant-numeric: tabular-nums; }
@media (min-width: 820px) { .pk-addon-price { text-align: right; } }
.pk-addon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pk-addon-actions .pk-btn { padding: 9px 16px; font-size: 0.92rem; }
.pk-addon-actions .pk-link { font-size: 0.92rem; }

.pk-link { color: var(--pk-blue); font-weight: 600; text-decoration: none; }
.pk-link:hover { text-decoration: underline; }

/* ---- Comparison table ------------------------------------------------- */
.pk-scroll {
    position: relative; /* contains the visually-hidden cell labels so they can't widen the page */
    margin-top: 28px;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--pk-line);
    border-radius: 12px;
}
.pk-matrix {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.93rem;
}
.pk-matrix th,
.pk-matrix td {
    padding: 14px 16px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--pk-line);
}
.pk-matrix thead th {
    background: var(--pk-soft);
    color: var(--pk-ink);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}
.pk-matrix thead th:first-child,
.pk-matrix tbody th[scope="row"] {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 190px;
    text-align: left;
    border-right: 1px solid var(--pk-line);
}
.pk-matrix tbody th[scope="row"] { background: #fff; font-weight: 700; color: var(--pk-ink); }
.pk-matrix tbody th[scope="row"] a { color: inherit; text-decoration: none; }
.pk-matrix tbody th[scope="row"] a:hover { color: var(--pk-blue); text-decoration: underline; }
.pk-matrix .pk-group th {
    position: static;
    padding: 10px 16px;
    text-align: left;
    background: var(--pk-blue-soft);
    color: var(--pk-blue);
    font-size: 0.85rem;
    font-weight: 700;
    border-right: 0;
}
.pk-matrix .pk-group--fast th { background: rgba(189, 149, 63, 0.09); color: var(--pk-gold); }
.pk-matrix tbody tr:last-child > * { border-bottom: 0; }
.pk-yes::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background: var(--pk-check) center / 18px no-repeat;
}
.pk-no { color: #94a3b8; }
.pk-matrix td.pk-price-cell {
    font-weight: 800;
    color: var(--pk-ink);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ---- Notes (definition list) ----------------------------------------- */
.pk-notes { margin-top: 28px; border-top: 1px solid var(--pk-line); }
.pk-note {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px 40px;
    padding: 20px 0;
    border-bottom: 1px solid var(--pk-line);
}
@media (min-width: 820px) { .pk-note { grid-template-columns: 300px 1fr; } }
.pk-note dt { font-weight: 700; color: var(--pk-ink); line-height: 1.65; }
.pk-note dd { max-width: 70ch; line-height: 1.65; }

/* ---- FAQ -------------------------------------------------------------- */
.pk-faq { margin-top: 28px; border-top: 1px solid var(--pk-line); }
.pk-faq details { border-bottom: 1px solid var(--pk-line); }
.pk-faq summary {
    position: relative;
    padding: 18px 40px 18px 0;
    list-style: none;
    cursor: pointer;
    font-weight: 700;
    color: var(--pk-ink);
    line-height: 1.4;
}
.pk-faq summary::-webkit-details-marker { display: none; }
.pk-faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--pk-blue);
}
.pk-faq details[open] summary::after { content: "\2212"; }
.pk-faq details p { padding: 0 40px 20px 0; max-width: 70ch; line-height: 1.65; }

/* ---- Closing call to action ------------------------------------------ */
.pk-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    margin-top: 64px;
    padding: 36px;
    background: var(--pk-soft);
    border: 1px solid var(--pk-line);
    border-radius: 12px;
}
.pk-cta h2 { font-size: 1.5rem; font-weight: 800; color: var(--pk-ink); line-height: 1.25; }
.pk-cta p { margin-top: 8px; max-width: 52ch; color: var(--pk-muted); }
.pk-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---- Small screens ---------------------------------------------------- */
@media (max-width: 600px) {
    .pk-hero { padding: 28px 0 36px; }
    .pk-section { padding-top: 48px; }
    .pk-card { padding: 24px 20px 22px; }
    .pk-card--feature { padding: 23px 19px 21px; }
    .pk-fast { padding: 22px 18px; }
    .pk-fast-opt .pk-btn { width: 100%; }
    .pk-matrix { font-size: 0.85rem; }
    .pk-matrix thead th:first-child,
    .pk-matrix tbody th[scope="row"] { min-width: 150px; }
    .pk-matrix th, .pk-matrix td { padding: 12px 12px; }
    .pk-addon { padding: 18px; }
    .pk-cta { padding: 26px 20px; }
    .pk-cta-actions .pk-btn { width: 100%; }
    .pk-faq details p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pk-page * { transition: none !important; }
}
