/* ======================================================================
   MyLink — Design System (Apple-inspired)
   Tokens, typography, components, layout, responsive
   ====================================================================== */

/* --- Tokens ----------------------------------------------------------- */
:root {
    /* Color */
    --action-blue: #02c7de;
    --focus-blue: #06d8ef;
    --sky-link-blue: #02c7de;
    --pearl-button: #fafafc;
    --soft-chip-gray: rgba(210, 210, 215, 0.64);

    --pure-white: #ffffff;
    --parchment: #f5f5f7;
    --tile-dark-1: #272729;
    --tile-dark-2: #2a2a2c;
    --tile-dark-3: #252527;
    --pure-black: #000000;

    --ink: #1d1d1f;
    --paper: #ffffff;
    --muted-ink-80: rgba(0, 0, 0, 0.8);
    --muted-ink-48: rgba(0, 0, 0, 0.48);
    --divider-4: rgba(0, 0, 0, 0.04);
    --hairline: rgba(0, 0, 0, 0.08);

    /* Radii */
    --radius-pill: 980px;
    --radius-card: 18px;
    --radius-pearl: 11px;
    --radius-utility: 8px;
    --radius-image: 8px;

    /* Shadow — single token, used only on imagery */
    --shadow-product: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;

    /* Layout */
    --max-content: 1440px;
    --max-text: 980px;

    /* Typography stacks */
    --font-display: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-text: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --- Reset ------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-text);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47;
    letter-spacing: -0.374px;
    color: var(--ink);
    background: var(--pure-white);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--action-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

/* --- Typography ------------------------------------------------------- */
.t-hero {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.28px;
}

.t-h1 {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.10;
    letter-spacing: -0.01em;
}

.t-h2 {
    font-family: var(--font-text);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.20;
    letter-spacing: -0.374px;
}

.t-lead {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.20;
    letter-spacing: 0.196px;
}

.t-tagline {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 400;
    line-height: 1.19;
    letter-spacing: 0.231px;
}

.t-body {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.47;
    letter-spacing: -0.374px;
}

.t-strong {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -0.374px;
}

.t-caption {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    letter-spacing: -0.224px;
}

.t-fine {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.30;
    letter-spacing: -0.12px;
}

/* On dark surfaces — inline links only; pill buttons keep their own color */
.tile-dark a:not(.btn) {
    color: var(--sky-link-blue);
}

/* --- Buttons ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-text);
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.224px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: scale(0.95);
}

.btn:focus-visible {
    outline: 2px solid var(--focus-blue);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--action-blue);
    color: var(--paper);
}

.btn--primary:hover {
    background: #1ad4e8;
}

.btn--ghost {
    background: transparent;
    color: var(--action-blue);
    border-color: var(--action-blue);
}

.btn--ghost:hover {
    background: rgba(2, 199, 222, 0.08);
}

.btn--utility {
    background: var(--ink);
    color: var(--paper);
    font-size: 14px;
    border-radius: var(--radius-utility);
    padding: 8px 15px;
    min-height: 36px;
    letter-spacing: -0.224px;
}

.btn--utility:hover {
    background: #2c2c2e;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--action-blue);
    font-size: 17px;
    font-weight: 400;
}

.btn-link::after {
    content: "›";
    font-size: 1em;
    transform: translateY(-1px);
    transition: transform 120ms ease;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-link:hover::after {
    transform: translate(2px, -1px);
}

/* On dark tiles, the read-more link uses Sky Link Blue */
.tile-dark .btn-link {
    color: var(--sky-link-blue);
}

/* --- Layout helpers --------------------------------------------------- */
.container {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 24px;
}

.container--text {
    max-width: var(--max-text);
}

.tile {
    padding: 96px 24px;
}

.tile--compact {
    padding: 64px 24px;
}

.tile-light {
    background: var(--pure-white);
    color: var(--ink);
}

.tile-parchment {
    background: var(--parchment);
    color: var(--ink);
}

.tile-dark {
    background: var(--tile-dark-1);
    color: var(--paper);
}

.tile-dark-2 {
    background: var(--tile-dark-2);
    color: var(--paper);
}

.tile-dark-3 {
    background: var(--tile-dark-3);
    color: var(--paper);
}

.tile-stack {
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.tile-stack > * + * {
    margin-top: 16px;
}

.tile-stack .cta-row {
    margin-top: 32px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* --- Top contact bar (global nav, Pure Black) ------------------------ */
.topbar {
    background: var(--pure-black);
    color: var(--paper);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.12px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 44px;
    padding: 0 24px;
    max-width: var(--max-content);
    margin: 0 auto;
}

.topbar__cluster {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.topbar__hours {
    color: rgba(255, 255, 255, 0.65);
}

.topbar a {
    color: var(--paper);
}

.topbar a:hover {
    color: var(--sky-link-blue);
    text-decoration: none;
}

.topbar__phones {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar__phone span {
    color: rgba(255, 255, 255, 0.55);
    margin-right: 6px;
}

.topbar__messengers {
    display: flex;
    gap: 16px;
}

/* --- Sub-nav (sticky, frosted Parchment) ----------------------------- */
.subnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
}

.subnav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 24px;
    max-width: var(--max-content);
    margin: 0 auto;
    gap: 24px;
}

.subnav__brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.subnav__brand img {
    height: 32px;
    width: auto;
    display: block;
}

.subnav__brand:hover {
    text-decoration: none;
    opacity: 0.85;
}

.subnav__links {
    display: flex;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.subnav__links a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.224px;
    padding: 6px 4px;
}

.subnav__links a:hover {
    color: var(--action-blue);
    text-decoration: none;
}

.subnav__links a.is-active {
    color: var(--action-blue);
}

.subnav__cta {
    display: flex;
    align-items: center;
}

.subnav__toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-utility);
}

.subnav__toggle svg {
    width: 20px;
    height: 20px;
    stroke: var(--ink);
}

/* --- Hero ------------------------------------------------------------- */
.hero {
    padding: 120px 24px 96px;
    text-align: center;
}

.hero__eyebrow {
    color: var(--muted-ink-48);
    font-size: 14px;
    letter-spacing: -0.224px;
    margin-bottom: 16px;
}

.hero h1 {
    margin-bottom: 16px;
}

.hero__lead {
    color: var(--muted-ink-80);
    max-width: 720px;
    margin: 0 auto 32px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.hero__fineprint {
    color: var(--muted-ink-48);
    font-size: 12px;
}

/* --- Utility cards (tariffs, payments) ------------------------------- */
.cards-section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.cards-section__head h2 {
    margin-bottom: 12px;
}

.cards-section__head p {
    color: var(--muted-ink-80);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.card {
    background: var(--pure-white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.card__eyebrow {
    color: var(--muted-ink-48);
    font-size: 14px;
    letter-spacing: -0.224px;
    margin-bottom: 4px;
}

.card__title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.card__price {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-top: auto;
    padding-top: 20px;
}

.card__price-suffix {
    font-size: 17px;
    font-weight: 400;
    color: var(--muted-ink-48);
    letter-spacing: -0.374px;
}

.card__desc {
    color: var(--muted-ink-80);
    font-size: 17px;
}

.card__cta {
    margin-top: 16px;
}

.card-note {
    text-align: center;
    color: var(--muted-ink-48);
    font-size: 12px;
    margin-top: 32px;
}

/* --- Promo / news block ---------------------------------------------- */
.promo {
    text-align: center;
    max-width: 880px;
    margin: 0 auto;
}

.promo__eyebrow {
    color: var(--sky-link-blue);
    font-size: 14px;
    letter-spacing: -0.224px;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 600;
}

.promo h2 {
    margin-bottom: 16px;
}

.promo p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 21px;
    line-height: 1.4;
    max-width: 720px;
    margin: 0 auto 32px;
}

.tile-light .promo__eyebrow,
.tile-parchment .promo__eyebrow {
    color: var(--action-blue);
}

.tile-light .promo p,
.tile-parchment .promo p {
    color: var(--muted-ink-80);
}

/* --- News / announcement card --------------------------------------- */
.news {
    max-width: 880px;
    margin: 0 auto;
}

.news h2 {
    margin-bottom: 24px;
    text-align: center;
}

.news__body {
    background: var(--pure-white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    padding: 40px;
}

.news__body > * + * {
    margin-top: 16px;
}

.news__body strong {
    font-weight: 600;
}

/* --- Page text content (договір) ------------------------------------ */
.doc {
    max-width: var(--max-text);
    margin: 0 auto;
    padding: 0 24px;
}

.doc h1 {
    margin-bottom: 16px;
    text-align: center;
}

.doc__lead {
    text-align: center;
    color: var(--muted-ink-80);
    margin-bottom: 64px;
    font-size: 21px;
    line-height: 1.4;
}

.doc h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-top: 48px;
    margin-bottom: 16px;
}

.doc h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.374px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.doc p {
    color: var(--muted-ink-80);
    margin-bottom: 16px;
}

.doc strong {
    color: var(--ink);
    font-weight: 600;
}

/* --- Contacts grid --------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.contact-card {
    background: var(--pure-white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    padding: 40px;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.contact-card .meta {
    color: var(--muted-ink-48);
    font-size: 14px;
    letter-spacing: -0.224px;
    margin-bottom: 24px;
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--hairline);
}

.phone-list li:last-child {
    border-bottom: none;
}

.phone-list .operator {
    color: var(--muted-ink-80);
    font-size: 14px;
}

.phone-list .number {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.374px;
    color: var(--ink);
}

.phone-list .number:hover {
    color: var(--action-blue);
    text-decoration: none;
}

.messenger-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.messenger-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pearl);
    color: var(--ink);
    font-size: 17px;
    transition: border-color 120ms ease, background-color 120ms ease;
}

.messenger-list a:hover {
    border-color: var(--action-blue);
    background: rgba(2, 199, 222, 0.06);
    text-decoration: none;
}

.messenger-list a span:last-child {
    color: var(--action-blue);
    margin-left: auto;
    font-size: 14px;
}

/* --- Inline link list (payment instructions) ----------------------- */
.link-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--pure-white);
}

.link-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
    font-size: 17px;
    transition: background-color 120ms ease;
}

.link-list a:last-child {
    border-bottom: none;
}

.link-list a:hover {
    background: var(--parchment);
    text-decoration: none;
}

.link-list a::after {
    content: "›";
    color: var(--action-blue);
    font-size: 24px;
    line-height: 1;
}

/* --- Footer ---------------------------------------------------------- */
.footer {
    background: var(--parchment);
    color: var(--ink);
    padding: 64px 24px 32px;
    border-top: 1px solid var(--hairline);
}

.footer__inner {
    max-width: var(--max-content);
    margin: 0 auto;
}

.footer__cols {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__brand {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.footer__tag {
    color: var(--muted-ink-48);
    font-size: 12px;
    letter-spacing: -0.12px;
    line-height: 1.6;
    max-width: 280px;
}

.footer__col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.12px;
    color: var(--ink);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.footer__col ul {
    line-height: 2.41;
}

.footer__col a {
    color: var(--muted-ink-80);
    font-size: 12px;
    letter-spacing: -0.12px;
}

.footer__col a:hover {
    color: var(--action-blue);
    text-decoration: none;
}

.footer__legal {
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted-ink-48);
    font-size: 12px;
    letter-spacing: -0.12px;
}

/* --- Floating callback (FAB) ---------------------------------------- */
.fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--action-blue);
    color: var(--paper);
    font-family: var(--font-text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.224px;
    padding: 14px 22px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: transform 120ms ease, background-color 120ms ease;
    min-height: 52px;
}

.fab:hover {
    background: #1ad4e8;
    text-decoration: none;
}

.fab:active {
    transform: scale(0.95);
}

.fab:focus-visible {
    outline: 2px solid var(--focus-blue);
    outline-offset: 2px;
}

.fab__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- Modal ---------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal__window {
    position: relative;
    background: var(--pure-white);
    border-radius: var(--radius-card);
    padding: 40px 32px 32px;
    width: 100%;
    max-width: 440px;
    animation: modal-in 200ms ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--parchment);
    color: var(--ink);
    font-size: 18px;
    line-height: 1;
    transition: background-color 120ms ease;
}

.modal__close:hover {
    background: #ececef;
}

.modal__close:focus-visible {
    outline: 2px solid var(--focus-blue);
    outline-offset: 2px;
}

.modal__title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.modal__lead {
    color: var(--muted-ink-80);
    font-size: 15px;
    margin-bottom: 24px;
}

/* --- Form ----------------------------------------------------------- */
.callback-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
}

.field__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.12px;
    color: var(--muted-ink-80);
    margin-left: 18px;
    margin-bottom: 6px;
}

.field__input {
    font-family: var(--font-text);
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.374px;
    color: var(--ink);
    background: var(--pure-white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    padding: 14px 20px;
    width: 100%;
    transition: border-color 120ms ease, box-shadow 120ms ease;
    -webkit-appearance: none;
    appearance: none;
}

.field__input::placeholder {
    color: var(--muted-ink-48);
}

.field__input:focus {
    outline: none;
    border-color: var(--action-blue);
    box-shadow: 0 0 0 3px rgba(2, 199, 222, 0.18);
}

.field__input.is-invalid {
    border-color: #d8503e;
}

.field__error {
    color: #d8503e;
    font-size: 12px;
    margin-left: 18px;
    margin-top: 6px;
    display: none;
}

.field__error.is-visible {
    display: block;
}

.callback-form__submit {
    margin-top: 8px;
    width: 100%;
}

.callback-form__legal {
    text-align: center;
    color: var(--muted-ink-48);
    font-size: 12px;
    letter-spacing: -0.12px;
    margin-top: 12px;
}

/* --- Success state -------------------------------------------------- */
.callback-success {
    text-align: center;
    padding: 16px 0 8px;
}

.callback-success__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(2, 199, 222, 0.12);
    color: var(--action-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.callback-success__icon svg {
    width: 28px;
    height: 28px;
}

.callback-success h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.callback-success p {
    color: var(--muted-ink-80);
    font-size: 17px;
}

/* --- Responsive ------------------------------------------------------ */
@media (max-width: 1068px) {
    .t-hero {
        font-size: 48px;
    }

    .t-h1 {
        font-size: 36px;
    }

    .tile {
        padding: 80px 24px;
    }

    .footer__cols {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 833px) {
    .topbar__inner {
        flex-direction: column;
        height: auto;
        padding: 12px 24px;
        gap: 8px;
    }

    .topbar__cluster {
        gap: 16px;
        justify-content: center;
    }

    .subnav__links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--pure-white);
        border-bottom: 1px solid var(--hairline);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
    }

    .subnav__links.is-open {
        display: flex;
    }

    .subnav__links a {
        padding: 14px 0;
        border-bottom: 1px solid var(--hairline);
        font-size: 17px;
    }

    .subnav__links a:last-child {
        border-bottom: none;
    }

    .subnav__toggle {
        display: inline-flex;
    }

    .subnav__cta .btn--primary {
        font-size: 14px;
        padding: 8px 14px;
        min-height: 36px;
    }

    .cards {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 80px 24px 64px;
    }

    .footer__cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .t-hero {
        font-size: 34px;
        line-height: 1.12;
    }

    .t-h1 {
        font-size: 30px;
    }

    .t-h2 {
        font-size: 26px;
    }

    .t-lead {
        font-size: 21px;
    }

    .promo p {
        font-size: 17px;
    }

    .tile {
        padding: 64px 20px;
    }

    .hero__cta .btn,
    .cta-row .btn {
        width: 100%;
    }

    .hero__cta,
    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .news__body,
    .contact-card {
        padding: 24px;
    }

    .doc__lead {
        font-size: 17px;
    }
}

@media (max-width: 419px) {
    .t-hero {
        font-size: 28px;
    }

    .topbar__phones {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .fab {
        right: 16px;
        bottom: 16px;
        padding: 14px;
        font-size: 0;
        gap: 0;
    }

    .fab .fab__icon {
        width: 22px;
        height: 22px;
    }

    .modal__window {
        padding: 32px 20px 24px;
    }
}
