:root {
  /* 60% — доминирующий цвет (фон, большие блоки) */
  --color-dominant: #FFFFFF;
  --color-dominant-alt: #FFF9F3;

  /* 30% — вторичный цвет (шапка, боковые панели, карточки) */
  --color-secondary: #2c3e50;
  --color-secondary-light: #34495e;

  /* 10% — акцентный цвет (кнопки, ссылки, активные элементы) */
  --color-accent: #F7931D;
  --color-accent-hover: #FFAD4C;
  --color-accent-pressed: #E28210;

  /* Blue button states */
  --color-blue: #124E8C;
  --color-blue-hover: #357AC2;
  --color-blue-pressed: #043F7C;

  /* Дополнительные переменные для удобства */
  --text-primary: #262B30;
  --text-secondary: #124E8C;
  --border-radius: 8px;
  --footer-bg: #262B30;

  /* Layout: content width + auto-centered side gutters on wide screens */
  --layout-max: 1248px;
  --pad-desktop: max(24px, calc((100vw - var(--layout-max)) / 2));
  --pad-tablet: 24px;
  --pad-mobile: 20px;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

body{
    font-family: 'AA Stetica', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0;
    overflow-x: hidden;
}

a{
    text-decoration: none;
}

/* Centered content column (1248px max) */
.header__container,
.hero__container,
.advantages__container,
.calc__container,
.services__container,
.footer__container,
.feedback__container,
.team__container,
.blog__container,
.about__container {
    width: 100%;
    max-width: var(--layout-max);
    margin-inline: auto;
}


/* Header Styles */
.header {
    background: var(--color-dominant);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.04);
    padding: 0 var(--pad-desktop);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    height: 111px;
}

.header__left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header__logo {
    object-fit: contain;
}

.header__nav {
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.header__nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
    width: 457px;
    align-items: center;
}

.header__nav-list li a {
    color: var(--color-secondary);
    font-family: 'AA Stetica', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
    transition: color 0.2s;
    padding: 4px 6px;
    border-radius: var(--border-radius);
}

.header__nav-list li a:hover,
.header__nav-list li a.is-active {
    color: var(--color-accent);
    background: #f5f5f5;
}

.header__right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 3px;
}

.header__phone {
    display: flex;
    align-items: center;
    color: var(--color-secondary);
    font-weight: 400;
    font-size: 18px;
    margin-right: 8px;
    transition: color 0.2s;
}

.header__phone:hover {
    color: var(--color-accent);
}

.header__icon {
    margin-right: 6px;
    object-fit: contain;
    vertical-align: middle;
}

.header__icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.header__icon-link:hover {
    opacity: 0.75;
}

.header__icon-link .header__icon {
    margin-right: 0;
}


.header__burger{
  display: none;
  background: none;
  border: 0;
}

/* Close button for drop menu */
.header__close-btn {
    margin-left: 75%;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: right;
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    transition: opacity 0.2s;
}

.header__close-btn:hover {
    opacity: 0.7;
}

.header__close-icon {
    width: 22px;
    height: 22px;
}

/* Drop menu styles */
.header__drop-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 270px;
    height: 100vh;
    background: var(--color-dominant);
        margin: 4px 0;
    z-index: 101;
    padding: 32px 18px 18px 18px;
    flex-direction: column;
    align-items: flex-start;
    overflow-y: auto;
    transition: transform 0.3s;
}
.header__drop-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.header__drop-list li a {
    color: var(--color-secondary);
    font-size: 16px;
    font-weight: 400;
    border-radius: var(--border-radius);
    transition: color 0.2s;
}
.header__drop-list li a:hover,
.header__drop-list li a.is-active {
    color: var(--color-accent);
    background: #f5f5f5;
}
.header__drop-contacts {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}


@media (max-width: 768px) {
    .header__logo{
        width: 124px;
        height: 49px;

    }
    .header {
        padding: 0 var(--pad-tablet);
    }
    .header__nav {
        display: none;
    }
    .header__burger {
        display: flex;
    }
    .header__close-btn {
        display: flex;
    }
    .header__drop-menu.active {
        display: flex;
    }
    .header__container {
        height: 64px;
        padding: 0;
        gap: 10px;
    }
    
}

@media (max-width: 440px) {
    .header {
        padding: 0 var(--pad-mobile);
    }
    .header__right {
        display: none;
    }
    .header__nav {
        display: none;
    }
    .header__left{
        display: flex;
    }
    .header__burger {
        display: flex;
    }
    .header__close-btn {
        display: flex;
    }
    .header__drop-menu.active {
        display: flex;
    }
    .header__phone span{    
        font-size:16px;
    }
    .header__drop-contacts{
        display: flex;
        flex-direction: column;
        gap:20px;
        margin-top: 0;
    }
    .header__drop-contacts-icons{
        display:flex;
        gap: 10px;
        flex-direction: row;
        size: 120%;
    }
}

/* Hero Section Styles */
.hero {
    position: relative;
    background: var(--color-dominant-alt);
    padding: 0px var(--pad-desktop);
    padding-top: 40px;
    overflow: hidden;
    min-height: 623px;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero__line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.hero__circles {
    overflow:visible ;
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: 0.7;
    z-index: 0;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
    padding: 0;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 718px;
}

.hero__title {
    width: 718px;
    font-size: 56px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.2;
    margin: 0;
}

.hero__subtitle {
    font-size: 56px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.hero__description {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
    margin-top: 20px;
    max-width: 650px;
}

.hero__features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 40px 0;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 400;
}

.hero__feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.hero__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    z-index: 1;
}

.hero__btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero__btn-arrow {
    width: 8px;
    height: 14px;
    margin-left: 10px;
    display: inline-block;
}

.hero__btn--primary {
    background: var(--color-accent);
    color: white;
}

.hero__btn--primary:hover {
    background: var(--color-accent-hover);
}

.hero__btn--primary:active {
    background: var(--color-accent-pressed);
}

.hero__btn--primary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hero__btn--secondary {
    background: transparent;
    color: var(--color-blue);
    border: 2px solid var(--color-blue);
}

.hero__btn--secondary:hover {
    background: var(--color-blue);
    color: white;
}

.hero__btn--secondary:hover .hero__btn-arrow {
    filter: brightness(0) invert(1);
}

.hero__btn--secondary:active {
    background: var(--color-blue-pressed);
    border-color: var(--color-blue-pressed);
    color: white;
}

.hero__btn--secondary:active .hero__btn-arrow {
    filter: brightness(0) invert(1);
}

.hero__btn--secondary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

img.hero__girl {
    max-width: 120%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.1));
}

img.hero__girl-mobile-tablet {
    display: none;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.1));
}
.hero__circles-mobile-tablet {
    display: none;
    overflow:visible ;
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 120%;
    height: 120%;
    object-fit: cover;
    opacity: 0.7;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero {
        padding: 0px var(--pad-tablet);
        min-height: auto;
        padding-top: 47px;
    }

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

    /* Hide the entire desktop image wrapper */
    .hero__image {
        display: none;
    }

    .hero__content {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0;
        align-items: center;
        max-width: 718px;
    }


    .hero__title,
    .hero__subtitle,
    .hero__description {
        grid-column: 1 / -1;
    }


    .hero__features {
        grid-column: 1;
        grid-row: 4;
        margin: 0;
    }

    .hero__buttons {
        grid-column: 1;
        grid-row: 5;
        margin-inline-end: 28px;
    }

    .hero__circles-mobile-tablet {
        display: block;
    }
    img.hero__girl-mobile-tablet {
        display: block;
        grid-column: 2;
        grid-row: 4 / 6;
        max-width: 402px;
        height: auto;
        object-fit: contain;
        align-self: end;
    }
        .hero__btn--primary, .hero__btn--secondary{
        width: 100%;
       
        
    }
}

@media (max-width: 440px) {
    .hero {
        padding: 0px var(--pad-mobile);
            padding-top: 20px;
        min-height: auto;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero__content {
        display: flex;
        flex-direction: column;
        gap: 0;
        max-width: none;
    }
    .hero__title{
        padding-right: 150px;
    }

    .hero__title,
    .hero__subtitle{
        width: 100%;
        font-size: 32px;
        
    }
    .hero__buttons{
        align-self: center;
        margin-inline-end: 0;
    }

    .hero__title,
    .hero__subtitle,
    .hero__description,
    .hero__features,
    img.hero__girl-mobile-tablet {
        align-self: start;
        grid-column: auto;
        grid-row: auto;
        width: auto;
    }

    img.hero__girl-mobile-tablet {
        display: block;
        max-width: 100%;
        height: auto;
        max-height: 289px;
        object-fit: contain;
        margin: -40px 0px 0px 120px;
    }
    .hero__description{
        font-size: 14px;
    }
    .hero__feature{
        font-size: 14px;
    }
        .hero__features{
        margin-top: 10px;
        }

    .hero__btn--primary, .hero__btn--secondary{
        font-size: 14px;
        
    }

}

/* --- Секция: Преимущества --- */
.advantages {
    padding: 80px var(--pad-desktop);
    background-color: var(--color-dominant-alt);
    overflow: hidden;
    background-image: url('/img/circles/advantages_section-circle.svg');
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: right center;
}

.advantages__container {
    padding: 0;
    overflow: hidden;
}

.advantages__title {
    font-family: 'AA Stetica', sans-serif;
    font-size: 38px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 48px;
    text-align: left;
    line-height: 130%;
    letter-spacing: 0;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Card 03: spans cols 3-4, rows 1-2 */
.advantages__card:nth-child(3) {
    grid-column: 3 / span 1;
    grid-row: 1 / span 2;
}

.advantages__card:nth-child(4) {
    grid-column: 1 / span 2;
    grid-row: 2;
}
.advantages__card:nth-child(5) {
    grid-row: span 2;
}

.advantages__card:nth-child(6) {
    grid-column: span  2;
}

.advantages__card {
    background-color: var(--color-dominant);
    border-radius: 16px;
    padding: 20px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(44, 62, 80, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantages__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(44, 62, 80, 0.1);
}

.advantages__card-number {
    font-size: 38px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    align-self: flex-start;
    padding-bottom: 34px;
}

.advantages__card-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.advantages__card-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.advantages__card-text {
    font-size: 13px;
    color: var(--color-secondary);
    line-height: 1.6;
    margin: 0;
}


/* Акцентная карточка  */
.advantages__card--accent {
    grid-column: auto;
    grid-row: auto;
    background-color: var(--text-secondary);
    color: var(--color-dominant);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    overflow: visible;
    padding: 24px;
    max-height: 217px;
}

.advantages__card--accent .advantages__card-bottom {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 221px;
    margin-right: -100px;
}

.advantages__card--accent .advantages__card-title {
    color: var(--color-dominant);
    font-size: 38px;
    font-weight: 500;
    padding-bottom: 8px;
}

.advantages__card--accent .advantages__card-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-right: 70px;
    padding-bottom: 22px;
}

img.advantages__girl {
    display: block;
    position: static;
    height: auto;
    width: 100%;
    object-fit: contain;
    object-position: bottom;
    align-self: end;
    margin-bottom: 180px;
    margin-top: -48px;
    margin-left: -20px;
    /* padding-bottom: 30px;*/
    
}

.advantages__btn {
    border-radius: 16px;
    padding: 0px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: 'AA Stetica', sans-serif;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: var(--color-accent);
    color: white;
    width: 204px;
    height: 48px;
    z-index: 1;
}

.advantages__btn-arrow {
    width: 8px;
    height: 14px;
    margin-left: 10px;
    display: inline-block;
}


.advantages__btn:hover {
    background: var(--color-accent-hover);
}

.advantages__btn:active {
    background: var(--color-accent-pressed);
}

.advantages__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .advantages {
        padding: 60px var(--pad-tablet);
        background-size: auto 100%;
        background-position: right center;
    }

    .advantages__title {
        font-size: 2rem;
        margin-bottom: 36px;
    }
    .advantages__card-text{
        font-size: 12px;
    }
    .advantages__grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .advantages__card:nth-child(3),
    .advantages__card:nth-child(4),
    .advantages__card--accent {
        grid-column: auto;
        grid-row: auto;
    }

    .advantages__card:nth-child(6) {
        grid-column: span 1;
    }
    
    .advantages__card:nth-child(5) {
        grid-row: span 1;
    }

    .advantages__card--accent .advantages__card-title {
        font-size: 26px;
    }

    .advantages__card--accent {
        position: relative;
        overflow: hidden;
        display: block;
        min-height: 200px;
        max-height: 300px;
        padding-bottom: 120px;
    }

    .advantages__card--accent .advantages__card-bottom {
        margin-bottom: 0;
        margin-right: 0;
    }
     .advantages__card--accent .advantages__card-text {
        padding-bottom: 8px;
    }
    img.advantages__girl {
        position: absolute;
        right: 0;
        top: 30%;
        /* transform: translateY(-50%); */
        height: 70%;
        width: auto;
        max-height: none;
        margin: 0;
        object-fit: contain;
        object-position: bottom;
        z-index: 0;
    }

    .advantages__card{
        padding-bottom: 20px;
    }
}

@media (max-width: 440px) {
    .advantages {
        padding: 40px var(--pad-mobile);
    }

    .advantages__title {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }

    .advantages__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .advantages__card--accent {
        overflow: hidden;
        grid-column: span 1;
        grid-row: 10;
        padding: 20px 130px 20px 20px;
        min-height: 180px;
    }

    .advantages__card--accent .advantages__card-title {
        font-size: 22px;
    }

    img.advantages__girl {
        display: block;
        height: 65%;
        margin-top: 25px;
    }

    .advantages__card {
        padding: 24px 20px;
    }

    .advantages__card-number {
        font-size: 28px;
    }

    .advantages__card-title {
        font-size: 16px;
    }

    .advantages__card-text {
        z-index: 1;
        font-size: 12px;
    }
}

.calc-section { background: #F5FAFF; display: flex; align-items: center; justify-content: center; position: relative; padding: 80px var(--pad-desktop); overflow: hidden; background-image: url('/img/circles/calculator_section-circle.svg'); background-repeat: no-repeat; background-size: auto 100%; background-position: center center; }

.calc__container { position: relative; z-index: 2; display: flex; flex-direction: column; }

.calc__title { font-family: 'AA Stetica', sans-serif; font-size: 38px; font-weight: 500; color: var(--text-primary); line-height: 130%; letter-spacing: 0; margin-bottom: 16px; }
.calc__subtitle { font-size: 18px; font-weight: 400; color: var(--text-primary); margin-bottom: 50px; line-height: 1.6; max-width: 700px; }

.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.calc__input-stack { display: flex; flex-direction: column; gap: 12px; }

.calc__input-box { background: white; padding: 14px 20px 20px; border-radius: 16px; border: 1px solid #E5E7EB; position: relative; }
.calc__input-box label { display: block; font-size: 12px; color: var(--text-primary); margin-bottom: 4px; }
.calc__select-box select { width: 100%; font-size: 20px; font-weight: 700; border: none; outline: none; background: transparent; color: var(--text-primary); cursor: pointer; appearance: none; -webkit-appearance: none; }
.calc__input-row { display: flex; align-items: center; gap: 4px; }
.calc__input-row input { border: none; font-size: 20px; font-weight: 700; outline: none; background: transparent; color: var(--text-primary); field-sizing: content; max-width: 100%; }
.calc__input-row input[type="text"] {
    text-align: left;
    width: 140px;
}

.calc__input-row-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.calc__select-box .calc__input-row {
    position: relative;
}

.calc__select-box select {
    padding-right: 30px;
}

.calc__select-box .calc__input-row::after {
    content: '';
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    width: 24px;
    height: 24px;
    background-image: url(/img/arrows/arrow-blue.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
    pointer-events: none;
}

.calc__slider-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: #EEE; border-radius: 0 0 16px 16px; }
.calc__slider-track { position: absolute; height: 100%; background: var(--color-accent); left: 0; width: 0%; transition: width 0.1s; }
.calc__slider-thumb { position: absolute; width: 16px; height: 16px; background: var(--color-accent); border-radius: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 4px #F7931D47; pointer-events: none; }

input[type="range"] { position: absolute; top: -10px; width: 100%; opacity: 0; cursor: pointer; height: 20px; }

.calc__card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.08); border: 1px solid #EEE; }
.calc__card-header { background: var(--text-secondary); padding: 12px 20px; color: white; }
.calc__card-label { font-size: 14px; font-weight: 500; line-height: 1.2; margin-bottom: 4px; display: block; }
.calc__result-main { font-size: 28px; font-weight: 500; line-height: 1.2;}

.calc__card-body { padding: 20px; }
.calc__stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.calc__stat-label { font-size: 14px; color: var(--text-primary); margin-bottom: 4px; display: block; }
.calc__stat-value { font-size: 22px; font-weight: 500; color: var(--text-primary); }

.calc__cta-button { background: var(--color-accent); color: white; border: none; padding: 16px 32px; border-radius: 15px; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: background 0.2s; width: 50%; justify-content: center; }
.calc__cta-button:hover { background: var(--color-accent-hover); }
.calc__cta-button:active { background: var(--color-accent-pressed); }
.calc__cta-button:disabled { opacity: 0.3; cursor: not-allowed; }

@media (max-width: 768px) {
    .calc-section { padding: 60px var(--pad-tablet); }
    .calc__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 440px) {
    .calc-section { padding: 48px var(--pad-mobile);background-size: auto 25%; background-position: bottom center; }
    .calc__title { font-size: 28px; }
    
    .calc__subtitle{font-size: 13px; line-height: 1.6; margin-bottom: 28px;}
    .calc__input-box label { font-size: 12px; line-height: 1.5; }
    .calc__select-box select,
    .calc__input-row input { font-size: 16px; line-height: 1.2; }
    .calc__card-label { font-size: 13px; line-height: 1.5; }
    .calc__result-main { font-size: 24px; line-height: 1.2; }
    .calc__stat-label { font-size: 13px; }
    .calc__stat-value { font-size: 18px; }
    .calc__cta-button { width: 100%; font-size: 14px; }
    .calc__input-row-grid { grid-template-columns: 1fr; gap: 32px; }
}




/* Услуги */
.services {
    background: var(--color-dominant);
    padding: 80px var(--pad-desktop);
}

.services__container {
    padding: 0;
}

.services__title {
    font-family: 'AA Stetica', sans-serif;
    font-size: 38px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0 0 40px;
    text-align: left;
    line-height: 130%;
    letter-spacing: 0;
    max-width: 600px;
    margin-right: auto;
}

.services__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    margin-left: calc(var(--pad-desktop) * -1);
    margin-right: calc(var(--pad-desktop) * -1);
    padding-left: var(--pad-desktop);
    padding-right: var(--pad-desktop);
}

.services__tab {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 20px;
    background: #f2f2f2;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.services__tab:hover {
    background: #e8e8e8;
}

.services__tab--active {
    background: #F7931D;
    color: white;
}

.services__tab--active:hover {
    background: #e68a1a;
}

.services__tab-text--mobile {
    display: none;
}

.services__content {
    display: none;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: flex-start;
}

.services__content--active {
    display: grid;
}

.services__image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 400/422;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.services__img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.services__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.services__list--mortgage-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.services__list--mortgage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.services__item--span2 {
    grid-column: span 2;
}

.services__list--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: initial;
}

.services__item {
    display: grid;
    grid-template-columns: 1fr auto;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #E8EDEF;
    border-radius: 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
}



.services__item:hover {
    border-color: #F7931D;
}
.services__item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.services__tag {
    font-weight: 500;
    font-size: 11px;
    padding: 2px 8px;
    background: #E5F2FF;
    color: #124E8C;
    border-radius: 4px;
    white-space: nowrap;
}
.services__arrow {
    width: 18px;
    height: 15px;
    margin-right: 2.5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.services__item:hover .services__arrow {
    transform: translateX(4px);
}

.services__programs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    padding-top: 20px;
}

.services__programs-title {
    font-size: 25px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.services__programs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.services__program-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1.5px solid #E8E8E8;
    border-radius: 16px;
    background: #fff;
}

.services__program-item:hover {
    border-color: var(--color-accent);
}

.services__program-item:hover .services__arrow {
    transform: translateX(4px);
}

.services__program-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.services__badge {
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}


@media (max-width: 768px) {
    .services {
        padding: 60px var(--pad-tablet);
    }

    .services__title {
        font-size: 38px;
        margin-bottom: 40px;
    }

    .services__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    margin-left: calc(var(--pad-tablet) * -1);
    margin-right: calc(var(--pad-tablet) * -1);
    padding-left: var(--pad-tablet);
    padding-right: var(--pad-tablet);
    }  
    .services__tab {
      font-size: 14px;
    } 

    .services__content {
        gap: 32px;
    }

    .services__list {
        gap: 16px;
        grid-row:2;
    }

    .services__list--grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .services__image {
        width: 100%;
        max-width: 720px;
        aspect-ratio: 720/184;
        margin-bottom: 24px;
    }

    .services__img {
        border-radius: 20px;
        
    }
}

@media (max-width: 440px) {
    .services {
        padding: 32px var(--pad-mobile);
    }

    .services__title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .services__tabs {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 24px;
        margin-left: calc(var(--pad-mobile) * -1);
        margin-right: calc(var(--pad-mobile) * -1);
        padding-left: var(--pad-mobile);
        padding-right: var(--pad-mobile);
    }

    .services__tab {
        flex: 1;
        min-width: 100px;
    }

    .services__tab-text--desktop {
        display: none;
    }

    .services__tab-text--mobile {
        display: inline;
    }

    .services__content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services__list--grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services__image {
        width: 100%;
        aspect-ratio: 396/184;
        margin-bottom: 24px;
    }

    .services__img {
        border-radius: 20px;
    }

    .services__list {
        gap: 10px;
    }

    .services__list--mortgage-wrap {
        gap: 0;
    }

    .services__list--mortgage {
        grid-template-columns: 1fr;
    }

    .services__item--span2 {
        grid-column: span 1;
    }

    .services__item {
        padding: 16px; 
        font-size: 14px;
    }

    .services__arrow {
        font-size: 1.2rem;
    }

    .services__programs-title {
        font-size: 0.9rem;
    }
    .services__list--grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .services__programs-grid {
        grid-template-columns: 1fr;
    }

    .services__program-item {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .services__badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

/* Подвал */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: 30px var(--pad-desktop) 20px;
}

.footer__container {
    padding: 0;
    display: flex;
    gap: 146px;
    align-items: stretch;
    flex-wrap: wrap;
}

/* Tablet/Mobile header — hidden on desktop */
.footer__tablet-header {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

/* Desktop left column */
.footer__left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 278px;
    flex-shrink: 0;
}

/* 2×3 nav grid */
.footer__nav-grid {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
}

/* Desktop placement */
.footer__column-buisness  { grid-column: 1 / span 2; grid-row: 1; }
.footer__column-nav       { grid-column: 3; grid-row: 1; }
.footer__column-individuals { grid-column: 1; grid-row: 2; }
.footer__column-mortgage  { grid-column: 2; grid-row: 2; }
.footer__newway-cell      { grid-column: 3; grid-row: 2; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 8px; }

.footer__newway-link { display: inline-block; line-height: 0; }
.footer__newway-svg { display: block; max-width: 100px; }
/* SVG already contains "РАЗРАБОТАНО" text */
.footer__newway-label { display: none; }

/* Desktop: business items in 2-column grid */
.footer__column-buisness .footer__column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 16px;
}

.footer__logo {
    color: white;
    display: block;
    width: 80px;
    height: auto;
    margin-bottom: 8px;
}

.footer__logo-img {
    filter: brightness(0) invert(100%);
    max-width: 124.21px;
    height: auto;
    object-fit: contain;
}

.footer__company-name {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: white;
}

.footer__company-code {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.footer__socials {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-content: flex-end;
}

.footer__left .footer__socials {
    margin-top: auto;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    color: white;
}

.footer__social-link:hover {
    background: #F7931D;
}

.footer__social-link img,
.footer__social-link svg {
    filter: invert(100%);
    width: 18px;
    height: 18px;
    object-fit: contain;
}

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

.footer__column-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
    color: white;
    border-style: solid;
    border-radius: 15px;
    border:none;
    background-color: #ffffff05;
    padding: 8px 16px;
}

.footer__column-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__column-list li a {
    color: #FFFFFF;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.footer__column-list li a:hover {
    color: #F7931D;
}

.footer__bottom {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer__bottom-newway {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.footer__bottom-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__info-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer__bottom-links {
    display: flex;
    gap: 24px;
}

.footer__bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__bottom-links a:hover {
    color: #F7931D;
}

.footer__left a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__left a:hover {
    color: #F7931D;
}

@media (max-width: 768px) {
    .footer {
        padding: 40px var(--pad-tablet) 20px;
    }
    .footer__container {
        flex-direction: column;
        gap: 28px;
    }
    .footer__tablet-header {
        display: flex;
    }
    .footer__left {
        display: none;
    }
    .footer__nav-grid {
        width: 100%;
        gap: 32px 20px;
    }
    /* Tablet: Юр. лицам spans full width with 3-col inner list */
    .footer__column-buisness  { grid-column: 1 / -1; grid-row: 1; }
    .footer__column-buisness .footer__column-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px 16px;
    }
    .footer__column-individuals { grid-column: 1; grid-row: 2; }
    .footer__column-mortgage    { grid-column: 2; grid-row: 2; }
    .footer__column-nav         { grid-column: 3; grid-row: 2; }
    .footer__newway-cell        { display: none; }

    .footer__bottom { display: flex; }
    .footer__bottom-links { gap: 16px; flex-wrap: wrap; }

    /* Larger socials in tablet header */
    .footer__socials--large .footer__social-link {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .footer__bottom-left {
        flex-wrap: wrap;
        flex-direction: row;
    }
    .footer__bottom-newway{
        align-self: flex-end;
    }
}

@media (max-width: 440px) {
    .footer {
        padding: 32px var(--pad-mobile) 12px;
    }
    .footer__container {
        gap: 20px;
    }
    .footer__nav-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .footer__column-buisness  { grid-column: auto; grid-row: auto; }
    .footer__column-buisness .footer__column-list { display: flex; flex-direction: column; }
    .footer__column-individuals { grid-column: auto; grid-row: auto; }
    .footer__column-mortgage    { grid-column: auto; grid-row: auto; }
    .footer__column-nav         { grid-column: auto; grid-row: auto; }
    .footer__bottom { flex-direction: column; align-items: flex-start; gap: 16px; }

    .footer__column-title {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .footer__column-list li a {
        font-size: 14px;
        line-height: 1.3;
    }

    .footer__company-name {
        font-size: 0.95rem;
    }

    .footer__company-code {
        font-size: 0.75rem;
    }

    .footer__socials {
        gap: 12px;
    }

    .footer__social-link {
        width: 28px;
        height: 28px;
    }

    .footer__newway-label {
        font-size: 0.7rem;
    }

    .footer__newway-logo {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }

    .footer__bottom {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: flex-start;
        gap: 52px;
        row-gap: 14px;
    }
    .footer__bottom-newway {
        grid-row: 2;
    }

    .footer__bottom-left {
        grid-row: 2;
        display: flex;
        flex-direction: column;
        gap:12px;
        width: 100%;
    }

    .footer__bottom-links {
        gap: 12px;
        flex-wrap: wrap;
        flex-direction: column;
        font-size: 0.75rem;
    }

    .footer__bottom-links a {
        font-size: 0.7rem;
    }

    .footer__info-text {
        font-size: 14px;
        line-height: 1.3;
    }
}

/* Feedback Section */
.feedback {
    background: var(--color-dominant);
    padding: 80px var(--pad-desktop);
    width: 100%;
    overflow: hidden;
}

.feedback__container {
    width: 100%;
    padding: 0;
}

.feedback__header {
    display: flex;
    align-items: center;
    gap: 44px;
    margin-bottom: 40px;
    flex-wrap: nowrap;
}

.feedback__title {
    font-family: 'AA Stetica', sans-serif;
    font-size: 38px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    margin: 0;
    flex-shrink: 0;
    line-height: 130%;
    letter-spacing: 0;
}

.feedback__tabs {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: auto;
    justify-content: center;
    border-radius: 50px;
    padding: 6px;
    max-width: 1000px;
}

.feedback__tab {
    flex: 1;
    padding: 14px 32px;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #F2F2F2;
    color: var(--text-primary);
    font-family: inherit;
    white-space: nowrap;
}

.feedback__tab--active {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(247, 147, 29, 0.25);
}

.feedback__nav-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: block;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--color-dominant);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    animation: slideUp 0.3s ease;
}

.modal.active {
    display: block;
}

.modal__content {
    padding: 48px 32px 32px;
    position: relative;
}

.modal__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal__close:hover {
    color: var(--text-primary);
}

.modal__title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 28px;
    text-align: left;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.modal__input-group {
    display: flex;
    flex-direction: column;
}

.modal__input {
    padding: 19px 20px;
    border: 1px solid #E8EDEF;
    border-radius: 16px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal__input::placeholder {
    color: #999;
}

.modal__input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(247, 147, 29, 0.1);
}

.modal__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    margin-bottom: 8px;
}

.modal__checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-accent);
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--color-accent);
    border-radius: 6px;
    background-color: white;
    position: relative;
}

.modal__checkbox input[type="checkbox"]:checked {
    background-color: var(--color-accent);
    background-image: url('/img/checkmark.svg');
    background-repeat: no-repeat;
    background-position: center;
}

.modal__checkbox-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.modal__submit-btn {
    padding: 16px 32px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 8px;
}

.modal__submit-btn:hover {
    background: var(--color-accent-hover);
}

.modal__submit-btn:active {
    background: var(--color-accent-pressed);
}

.modal__submit-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.modal__alternative-text {
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
    margin: 24px 0 16px;
    font-weight: 500;
}

.modal__messengers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modal__messenger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 16px;
    background: white;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.modal__messenger-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.modal__messenger-btn--whatsapp {
    border-color: var(--color-blue);
    color: var(--text-secondary);
}

.modal__messenger-btn--whatsapp:hover {
    background: var(--color-blue);
    color: white;
}

.modal__messenger-btn--telegram {
    border-color: var(--color-blue);
    color: var(--text-secondary);
}

.modal__messenger-btn--telegram:hover {
        background: var(--color-blue);
    color: white;
}

.modal__success-section {
    text-align: left;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: left;
    min-height: 178px;
    min-width: 475px;
    box-shadow: 0px 15px 30px 0px #1333551A;
}

.modal__success-title {
    font-size: 25px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.modal__success-text {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 440px) {
    .modal {
        width: 95%;
        max-height: 95vh;
        max-width: 100%;
    }

    .modal__content {
        padding: 28px;
    }

    .modal__title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .modal__input{
        padding: 20px 19.5px;
        font-size: 14px;
    }
    .modal__checkbox-text{
        font-size: 13px;
        line-height: 1.3;
    }
    .modal__success-section{
        min-width: 136px;
        max-height: 400px;
        padding: 28px;
    }

    .modal__success-title {
        font-size: 20px;
    }

    .modal__success-text {
        font-size: 13px;
        line-height: 1.3;
    }


}

.feedback__tab:hover:not(.feedback__tab--active) {
    color: var(--color-accent);
}

.feedback__content {
    display: none;
}

.feedback__content--active {
    display: block;
}

.feedback__nav {
    background: var(--color-accent);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.feedback__nav--prev img {
    transform: rotate(180deg);
}

.feedback__nav--next {
    background: var(--color-accent);
}

.feedback__nav:hover {
    background: var(--color-accent-hover);
}

.feedback__nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.feedback__nav img {
    width: 22px;
    height: 22px;
}

/* Alternating body: pairs + media */
.feedback__body {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* Физ. лица на десктопе: не более 4 колонок, остальное — карусель */
@media (min-width: 769px) {
    .feedback__content[data-content="individuals"] .feedback__body {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .feedback__content[data-content="individuals"] .feedback__body::-webkit-scrollbar {
        display: none;
    }

    .feedback__content[data-content="individuals"] .feedback__body > .feedback__pair,
    .feedback__content[data-content="individuals"] .feedback__body > .feedback__media-item {
        flex: 0 0 calc((100% - 72px) / 4);
        min-width: calc((100% - 72px) / 4);
        max-width: calc((100% - 72px) / 4);
        scroll-snap-align: start;
    }

    .feedback__content[data-content="individuals"] .feedback__body > .feedback__media-item {
        flex: 0 0 calc((100% - 72px) / 4);
        min-width: calc((100% - 72px) / 4);
        height: 520px;
    }

    .feedback__pair .feedback__card {
        height: 50%;
        box-sizing: border-box;
    }
}

.feedback__pair {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Carousel track for media items (business tab certificates) */
.feedback__media-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.feedback__media-track::-webkit-scrollbar {
    display: none;
}

.feedback__media-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: #f4f4f4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Inside feedback__body: stretch to fill column height */
.feedback__body .feedback__media-item {
    flex: 1;
    min-width: 0;
    scroll-snap-align: unset;
}

/* Inside media-track: fixed card size */
.feedback__media-track .feedback__media-item {
    flex: 0 0 auto;
    width: 240px;
    height: 340px;
    scroll-snap-align: start;
}

.feedback__media-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feedback__media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feedback__media-item--certificate {
    width: 280px;
    height: 380px;
    background: #fff;
}

.feedback__media-item--certificate img {
    object-fit: contain;
    padding: 8px;
}

.feedback__media-play,
.feedback__media-zoom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.feedback__media-play img
{
        width: 19px;
        height: 22px;
}
.feedback__media-zoom img {
    width: 40px;
    height: 40px;
}
.feedback__media-zoom {
    width: 80px;
    height: 80px;
    opacity: 0;
    transition: opacity 0.2s;
    border: 1px solid;
    border-image-source: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);


}

.feedback__media-item:hover .feedback__media-zoom {
    opacity: 1;
}

/* Text review cards */
.feedback__card {
    background: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feedback__card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feedback__name {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.feedback__rating {
    display: flex;
    gap: 3px;
    color: var(--color-accent);
}

.feedback__star {
    width: 10px;
    height: 10px;
    object-fit: contain;
}

.feedback__text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.feedback__empty {
    font-size: 0.95rem;
    color: #7a8a96;
    padding: 24px 0;
    line-height: 1.5;
}

.feedback__show-more {
    display: none;
    margin: 32px auto 0;
    padding: 14px 48px;
    background: white;
    border: 2px solid var(--color-accent);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
}

.feedback__show-more:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
}

.feedback__show-more:active {
    background: var(--color-accent-pressed);
    border-color: var(--color-accent-pressed);
    color: #fff;
}

.feedback__show-more:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Lightbox */
.fb-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
    animation: fadeIn 0.25s ease;
}

.fb-lightbox.active {
    display: flex;
}

.fb-lightbox__content {
    max-width: 92vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-lightbox__content img,
.fb-lightbox__content video {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 12px;
    object-fit: contain;
    background: #000;
}

.fb-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.fb-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1100px) {
    .feedback__title {
        font-size: 1.9rem;
    }
    .feedback__media-item {
        width: 220px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .feedback {
        padding: 60px var(--pad-tablet);
    }
    .feedback__header {
        flex-wrap: wrap;
        gap: 16px;
    }
    .feedback__title {
        flex: 1;
    }
    .feedback__tabs {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
        margin-left: 0;
    }
    .feedback__nav-group {
        order: 2;
        margin-left: 0;
        flex-shrink: 0;
    }
    .feedback__body {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    .feedback__body::-webkit-scrollbar {
        display: none;
    }
    .feedback__pair {
        flex: 0 0 auto;
        width: 294px;
        scroll-snap-align: start;
    }
    .feedback__body .feedback__media-item {
        flex: 0 0 auto;
        width: 294px;
        height: 520px;
        scroll-snap-align: start;
    }
}

@media (max-width: 440px) {
    .feedback {
        padding: 48px var(--pad-mobile);
    }
    .feedback__body {
        flex-direction: column;
    }
    .feedback__pair {
        order: 0;
        width: 100%;
    }

    .feedback__mobile-media {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding: 0 var(--pad-mobile) 8px;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .feedback__mobile-media::-webkit-scrollbar {
        display: none;
    }

    .feedback__mobile-media .feedback__media-item {
        flex: 0 0 auto;
        width: 200px;
        height: 280px;
        scroll-snap-align: start;
    }

    .feedback__header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        margin-bottom: 24px;
    }

    .feedback__title {
        font-size: 1.6rem;
        text-align: left;
        flex: unset;
    }

    .feedback__tabs {
        order: unset;
        flex: unset;
        max-width: 100%;
        width: 100%;
    }

    .feedback__tab {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .feedback__nav-group {
        display: none;
    }

    .feedback__media-track {
        gap: 12px;
        padding: 0 20px 8px;
    }

    .feedback__media-item {
        width: 140px;
        height: 220px;
        border-radius: 12px;
    }

    .feedback__media-item--certificate {
        width: 160px;
        height: 240px;
    }

    .feedback__media-play,
    .feedback__media-zoom {
        width: 44px;
        height: 44px;
    }


    .feedback__cards {
        gap: 16px;
        margin-top: 8px;
    }

    .feedback__card {
        padding: 18px;
        border-radius: 14px;
    }

    .feedback__name {
        font-size: 1rem;
    }

    .feedback__text {
        font-size: 0.9rem;
    }

    .feedback__show-more.feedback__show-more--visible {
        display: block;
        padding: 12px 32px;
        font-size: 0.95rem;
    }

    .fb-lightbox__close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }
}

/* ===== Team Section ===== */
.team {
    padding: 80px var(--pad-desktop);
    background: var(--color-dominant);
    overflow: hidden;
}

.team__container {
    padding: 0;
}

.team__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.team__title {
    font-family: 'AA Stetica', sans-serif;
    font-size: 38px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 130%;
    letter-spacing: 0;
}

.team__nav-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.team__nav {
    background: var(--color-accent);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.team__nav--prev img {
    transform: rotate(180deg);
}

.team__nav--next {
    background: var(--color-accent);
}

.team__nav:hover {
    background: var(--color-accent-hover);
}

.team__nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.team__nav img {
    width: 22px;
    height: 22px;
}

.team__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding-top: 40px;
    padding-bottom: 4px;
}

.team__track::-webkit-scrollbar {
    display: none;
}

.team__card {
    flex: 0 0 calc(25% - 18px);
    max-width: 294px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #E8EDEF;
    padding: 20px;
}

.team__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.team__photo-wrap {
    background: var(--text-secondary);
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: visible;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.team__photo {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 120%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.team__photo[src=""] {
    display: none;
}

.team__photo-wrap:has(.team__photo[src=""]) {
    min-height: 240px;
}

.team__info {
    padding: 20px 0px 20px;
}

.team__name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team__role {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.team__contacts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: nowrap;
}

.team__phone {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.team__phone img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: invert(1) brightness(0.8);
}

.team__messengers {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.team__messenger-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.team__messenger-btn:hover {
    background: var(--color-accent-hover);
}

.team__messenger-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@media (max-width: 1100px) {
    .team__card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    .team {
        padding: 60px var(--pad-tablet);
    }
    .team__title {
        font-size: 1.8rem;
    }
    .team__card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 440px) {
    .team {
        padding: 48px var(--pad-mobile);
    }
    .team__nav-group {
        display: none;
    }
    .team__title {
        font-size: 1.6rem;
    }
    .team__header {
        margin-bottom: 24px;
    }
    .team__track {
        gap: 12px;
        padding: 0 20px 8px;
    }
    .team__card {
        flex: 0 0 calc(75% - 12px);
        min-width: 200px;
    }
    .team__nav {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }
    .team__nav img {
        width: 18px;
        height: 18px;
    }
    .team__name{
        font-size: 15px;
    }
    .team__role{
        font-size: 13px;
    }
    .team__phone {
        font-size: 14px;
    }
    .team__photo {
        width: 65%;
        height: 100%;
    }
}

/* ===== Blog Section ===== */
.blog {
    position: relative;
    padding: 80px var(--pad-desktop);
    background: var(--color-dominant-alt);
    overflow: hidden;
    background-image: url('/img/circles/advantages_section-circle.svg');
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: center center;
}

.blog__container {
    position: relative;
    padding: 0;
}

.blog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 16px;
}

.blog__title {
    font-family: 'AA Stetica', sans-serif;
    font-size: 38px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 130%;
    letter-spacing: 0;
}

.blog__header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.blog__all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--color-blue);
    color: #fff;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease;
    white-space: nowrap;
}

.blog__all-btn:hover {
    background: var(--color-blue-hover);
}

.blog__all-btn:active {
    background: var(--color-blue-pressed);
}

.blog__all-btn img {
    width: 8px;
    height: 14px;
}

.blog__nav-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.blog__nav {
    background: var(--color-accent);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
}

.blog__nav--prev img {
    transform: rotate(180deg);
}

.blog__nav--next {
    background: var(--color-accent);
}

.blog__nav:hover {
    background: var(--color-accent-hover);
}

.blog__nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.blog__nav img {
    width: 22px;
    height: 22px;
}

.blog__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding-bottom: 4px;
}

.blog__track::-webkit-scrollbar {
    display: none;
}

.blog__card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 280px;
    max-width: 400px;
    max-height: 392px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.blog__card-img-wrap {
    max-width: 400px;
    max-height: 170px;
    background: #e8edf2;
    overflow: hidden;
    flex-shrink: 0;
}

.blog__card-img {
    width: 100%;
    height: 100%;
    object-position:50%;
    object-fit: cover;
    display: block;
}

.blog__card-img[src=""] {
    display: none;
}

.blog__card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.blog__card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.blog__card-text {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
    color:var(--text-primary);
    margin: 0;
    flex: 1;
}

.blog__card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.blog__card-link:hover {
    color: var(--color-accent);
}

.blog__card-link img {
    width: 6px;
    height: 10px;
}

@media (max-width: 768px) {
    .blog {
        padding: 60px var(--pad-tablet);
    }
    .blog__title {
        font-size: 1.8rem;
    }
    .blog__card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 440px) {
    .blog {
        padding: 48px var(--pad-mobile);
    }
    .blog__nav-group {
        display: none;
    }
    .blog__title {
        font-size: 28px;
    }
    .blog__header {
        flex-wrap: wrap;
        margin-bottom: 24px;
    }
    .blog__all-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    .blog__track {
        gap: 12px;
        padding: 0 20px 8px;
    }
    .blog__card {
        flex: 0 0 0 0;
        /*flex: 0 0 calc(82% - 12px);*/     
        min-width: 185px;
    }
    .blog__card-text{
        display: none;
    }
    .blog__card-title{
        font-size: 12px;
    }
    .blog__card-link {
        font-size: 14px;
        margin-top: auto;
    }

    .blog__card-img-wrap {
        height: 105px;
        max-height: 105px;
    }

    .blog__card-img {
        height: 105px;
    }

    .blog__card-body {
        flex: 1;
        min-height: 0;
    }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.breadcrumb__item:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: var(--text-primary);
    opacity: 1;
    font-size: 14px;
}

.breadcrumb__link {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.breadcrumb__link:hover {
    opacity: 1;
    color: var(--color-accent);
}

.breadcrumb__link:active {
    opacity: 1;
    color: var(--color-accent-pressed);
}

.breadcrumb__current {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.6;
}

/* ===== Page Breadcrumb ===== */
.page-breadcrumb {
    background: var(--color-dominant);
    padding: 20px var(--pad-desktop);
}

.blog-page__heading {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 32px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .page-breadcrumb {
        padding: 20px var(--pad-tablet);
    }
    .blog-page__heading {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }
}

@media (max-width: 440px) {
    .page-breadcrumb {
        padding: 20px var(--pad-mobile);
    }
    .blog-page__heading {
        font-size: 1.3rem;
    }
    .breadcrumb__link,
    .breadcrumb__current {
        font-size: 0.85rem;
    }
}

/* ===== Contacts Section ===== */
.contacts {
    position: relative;
    min-height: 576px;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    flex-direction: row;
}

.contacts__map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contacts__card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px 32px;
    margin: 0;
    margin-left: var(--pad-desktop);
    width: 420px;
    box-shadow: 0 8px 32px rgba(38, 43, 48, 0.13);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts__title {
    font-family: 'AA Stetica', sans-serif;
    font-size: 38px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 130%;
    letter-spacing: 0;
}

.contacts__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.contacts__phone-icon {
    width: 22px;
    height: 22px;
}

.contacts__address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.5;
}

.contacts__pin-icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.contacts__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.contacts__cta:hover {
    background: var(--color-accent-hover);
}

.contacts__cta:active {
    background: var(--color-accent-pressed);
}

.contacts__cta:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.contacts__cta img {
    width: 20px;
    height: 20px;
    filter: grayscale(100%) brightness(0%) invert(1);
}

.contacts__write-label {
    font-size: 20px;
    font-weight: 500;
    font-style:medium;
    color: var(--text-primary);
    margin-bottom: -4px;
}

.contacts__socials {
    display: flex;
    gap: 8px;
    margin-left: -28px;
    margin-right: -28px;
    padding-left: 28px;
    padding-right: 28px;
}

.contacts__social {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 44px;
    border-radius: 16px;
}

.contacts__social img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.contacts__social--tg { background: #2AABEE; }
.contacts__social--wa { background: #25D366; }
.contacts__social--vk { background: #0077FF; }

@media (max-width: 768px) {
    .contacts {
        min-height: 500px;
        padding: 40px var(--pad-tablet);
    }
    .contacts__card {
        margin-left: var(--pad-tablet);
        margin-right: var(--pad-tablet);
    }
}

@media (max-width: 440px) {
    .contacts {
        min-height: auto;
        padding: 0;
        flex-direction: column;
    }
    .contacts__map {
        position: relative;
        width: 100%;
        height: 300px;
        order: 2;
    }
    .contacts__card {
        width: 100%;
        margin: 0;
        padding: 28px var(--pad-mobile) 24px;
        border-radius: 0;
        order: 1;
    }
}

/* ===== About Us ===== */
.about {
    padding: 72px var(--pad-desktop);
    background: var(--color-dominant);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
    align-items: start;
    padding: 0;
}

.about__title {
    font-family: 'AA Stetica', sans-serif;
    font-size: 38px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 40px;
    line-height: 130%;
    letter-spacing: 0;
    grid-column: 1 / -1;
}

.about__text {
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.50;
    margin-bottom: 16px;
}

.about__text:last-child {
    margin-bottom: 0;
}

.about__right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.about__stat-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.about__stat-card {
    border: 1px solid rgba(44, 62, 80, 0.12);
    border-radius: 16px;
    padding: 20px;
    background: var(--color-dominant);
    transition: box-shadow 0.2s, transform 0.2s;
}

.about__stat-card:hover {
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.1);
    transform: translateY(-2px);
}

.about__stat-number {
    display: block;
    font-size: 38px;
    font-weight: 500;
    color: var(--color-accent);
    line-height: 1.3;
    margin-bottom: 4px;
}

.about__stat-label {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.about__stat-desc {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .about {
        padding: 60px var(--pad-tablet);
    }
    .about__container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .about__title {
    margin-bottom: 0;
    }
}

@media (max-width: 440px) {
    .about {
        padding: 48px var(--pad-mobile);
    }

    .about__title {
        font-size: 28px;
    }
    .about__text{
        font-size: 13px;
    }

    .about__stat-number {
        font-size: 28px;
    }
    .about__stat-label{
        font-size: 16px;
    }
    .about__stat-desc{
        font-size: 13px;
    }
    .about__right{
        display: flex;
        flex-direction: column;
    }
}
