/* ========== ПОДКЛЮЧЕНИЕ ШРИФТОВ ========== */
@font-face {
    font-family: 'Avenir Next Cyr';
    src: url('../font/AvenirNextCyr-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next Cyr';
    src: url('../font/AvenirNextCyr-Medium.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next Cyr';
    src: url('../font/AvenirNextCyr-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next Cyr';
    src: url('../font/AvenirNextCyr-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========== СБРОС И БАЗА ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e335a;
    --secondary: #c3d4f2;
    --light: #efedee;
    --white: #ffffff;
    --font: 'Avenir Next Cyr', 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--primary);
    background: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ШАПКА ========== */
.header {
    background: var(--primary);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo a {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.header-logo a:hover {
    opacity: 0.8;
}

.header-logo img {
    height: 60px;
    width: auto;
}

.header-logo-text {
    color: var(--white);
    font-size: 18px;
    letter-spacing: 2px;
    border-left: 2px solid var(--secondary);
    padding-left: 12px;
}

.header-logo-text span {
    display: block;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-top: 2px;
}

.nav {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

.nav a:hover {
    color: var(--secondary);
}

.nav a:hover::after {
    width: 100%;
}

.nav a.cta-nav {
    background: var(--secondary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav a.cta-nav:hover {
    background: var(--white);
    color: var(--primary);
}

.nav a.cta-nav::after {
    display: none;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: 0.3s;
}

/* ========== ГЕРОЙ ========== */
.hero {
    background: var(--primary);
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(195, 212, 242, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* ========== ГРИД ДЛЯ КОНТЕНТА ========== */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ========== РЕБРЕНДИНГ (над контентом) ========== */
.rebranding-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 40px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.rebranding-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.rebranding-text {
    flex: 1;
}

.rebranding-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 2px;
}

.rebranding-text p:last-child {
    margin-bottom: 0;
}

.rebranding-text strong {
    color: var(--white);
}

.rebranding-logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.rebranding-logos .old-logo {
    height: 50px;
    width: auto;
    opacity: 1;
    filter: brightness(0) invert(1);
}

.rebranding-logos .new-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.rebranding-logos .arrow {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hero-content .hero-sub {
    font-size: 18px;
    color: var(--secondary);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    max-width: 480px;
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-badge {
    display: inline-block;
    background: rgba(195, 212, 242, 0.15);
    border: 1px solid var(--secondary);
    padding: 6px 18px;
    color: var(--secondary);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-radius: 30px;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.4s ease;
    letter-spacing: 1px;
    border-radius: 50px;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(195, 212, 242, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-left: 15px;
}

.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-image-placeholder {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(145deg, rgba(195, 212, 242, 0.05), rgba(195, 212, 242, 0.15));
    border: 1px solid rgba(195, 212, 242, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder .signature {
    font-size: 42px;
    color: var(--secondary);
    opacity: 0.8;
    letter-spacing: 4px;
    font-style: italic;
}

.hero-image-placeholder .signature-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 10px;
}

.hero-image-placeholder .decor-line {
    width: 60px;
    height: 2px;
    background: var(--secondary);
    margin: 15px auto;
    opacity: 0.3;
}

/* ========== О МАСТЕРЕ ========== */
.about {
    padding: 100px 0;
    background: var(--light);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image .about-placeholder {
    background: var(--primary);
    background-image: url('../img/new/master.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
    border-radius: 20px;
}

.about-image .about-placeholder .about-master-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.about-image .about-placeholder .about-master-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image .about-placeholder .about-master-overlay {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 30px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(30, 51, 90, 0.85) 0%, rgba(30, 51, 90, 0) 70%);
    pointer-events: none;
}

.about-image .about-placeholder .signature-big {
    font-size: 44px;
    color: var(--secondary);
    letter-spacing: 4px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
}

.about-image .about-placeholder .about-master-overlay p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 6px;
}

.about-content .section-tag {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-content p {
    font-size: 17px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-content .about-quote {
    border-left: 3px solid var(--primary);
    padding-left: 24px;
    font-style: italic;
    font-size: 18px;
    color: var(--primary);
    margin: 25px 0;
    opacity: 0.9;
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.advantages {
    padding: 100px 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.advantages::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -300px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(195, 212, 242, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.advantages .container {
    position: relative;
    z-index: 2;
}

.advantages .section-header {
    text-align: center;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto 60px;
}

.advantages .section-header .section-tag {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--secondary);
    opacity: 0.6;
}

.advantages .section-header h2 {
    font-size: 38px;
    font-weight: 700;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: left;
    color: var(--white);
    padding: 35px 30px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.advantage-item h4 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.advantage-item p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* ========== КАК МЫ РАБОТАЕМ ========== */
.workflow {
    padding: 100px 0;
    background: var(--light);
}

.workflow .section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.workflow .section-header .section-tag {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.4;
}

.workflow .section-header h2 {
    font-size: 38px;
    font-weight: 700;
    margin: 10px 0;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.workflow-step {
    background: var(--white);
    padding: 35px 25px;
    border-left: 4px solid var(--secondary);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.workflow-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(2, 46, 93, 0.06);
}

.workflow-step .step-number {
    font-size: 28px;
    font-weight: 300;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.workflow-step h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 600;
}

.workflow-step p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* ========== НОВОСТИ (КАРУСЕЛЬ) ========== */
.news {
    padding: 100px 0;
    background: var(--white);
}

.news .section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.news .section-header .section-tag {
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.4;
}

.news .section-header h2 {
    font-size: 38px;
    font-weight: 700;
    margin: 10px 0;
}

.news-wrapper {
    position: relative;
    overflow: hidden;
}

.news-carousel {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
}

.news-card {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.news-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 15px 50px rgba(2, 46, 93, 0.06);
}

.news-card .news-image {
    height: 200px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
    font-size: 14px;
    letter-spacing: 2px;
    background-size: cover !important;
    background-position: center !important;
}

.news-card .news-body {
    padding: 25px;
}

.news-card .news-date {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 8px;
}

.news-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.news-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Карточка без изображения */
.news-card:not(:has(.news-image)) .news-body {
    padding: 30px 25px;
    min-height: 100%;
}

.news-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.news-controls button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-controls button:hover {
    background: var(--primary);
    color: var(--white);
}

/* ========== КОНТАКТЫ ========== */
.contacts {
    padding: 100px 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.contacts::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(195, 212, 242, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.contacts .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacts-info h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.contacts-info .sub {
    color: var(--secondary);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.contacts-info .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.contacts-info .contact-item .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    opacity: 0.6;
    min-width: 80px;
    font-weight: 600;
}

.contacts-info .contact-item .value {
    font-size: 16px;
}

.contacts-info .contact-item .value a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

.contacts-info .contact-item .value a:hover {
    color: var(--secondary);
}

.map-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.map-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.map-icons a:hover {
    transform: scale(1.1);
}

.map-icons img {
    height: 32px;
    width: auto;
    display: block;
}

.work-hours {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 20px;
}

.work-hours h4 {
    color: var(--secondary);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.work-hours .row {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    padding: 6px 0;
}

.work-hours .row .day {
    font-weight: 500;
}

.contacts-map {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contacts-map iframe {
    border: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    flex: 1;
}

/* ========== ФУТЕР ========== */
.footer {
    background: #1e1e1e;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer .copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.footer .footer-logo {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

.footer a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--secondary);
}

/* ========== COOKIE БАННЕР ========== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--primary);
    border-top: 3px solid var(--secondary);
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-banner .cookie-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
}

.cookie-banner .cookie-text a {
    color: var(--secondary);
    text-decoration: underline;
    transition: color 0.3s;
}

.cookie-banner .cookie-text a:hover {
    color: var(--white);
}

.cookie-banner .cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner .cookie-buttons .btn-cookie {
    padding: 10px 28px;
    border: none;
    border-radius: 30px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.cookie-banner .cookie-buttons .btn-accept {
    background: var(--secondary);
    color: var(--primary);
}

.cookie-banner .cookie-buttons .btn-accept:hover {
    background: var(--white);
    transform: scale(1.02);
}

.cookie-banner .cookie-buttons .btn-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner .cookie-buttons .btn-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

/* ========== КОНТАКТЫ: шапка с виджетом ========== */
.contacts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.contacts-title-group {
    flex: 1;
}

.contacts-title-group h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0;
}

.contacts-title-group .sub {
    color: var(--secondary);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 0;
}

.contacts-badge {
    flex-shrink: 0;
}

.contacts-badge iframe {
    display: block;
    border-radius: 8px;
}

/* ========== ДЕКОРАТИВНЫЙ ПАТТЕРН В ГЕРОЕ ========== */
.hero-pattern {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 140%;
    height: 140%;
    background-image: url('../img/new/back-pattern-1.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

/* ========== ДЕКОРАТИВНЫЙ ПАТТЕРН В ADVANTAGES ========== */
.advantages-pattern {
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 140%;
    height: 140%;
    background-image: url('../img/new/back-pattern-1.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom left;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content p {
        margin: 0 auto 35px;
        max-width: 100%;
    }

    .hero-image-placeholder {
        max-width: 300px;
        margin: 0 auto;
    }

    .rebranding-box {
        padding: 14px 18px;
        margin-bottom: 30px;
    }

    .rebranding-content {
        gap: 18px;
    }

    .rebranding-text p {
        font-size: 13px;
    }

    .rebranding-logos .old-logo,
    .rebranding-logos .new-logo {
        height: 30px;
    }

    .rebranding-logos .arrow {
        font-size: 16px;
    }

    .about .container {
        grid-template-columns: 1fr;
    }

    .about-image .about-placeholder {
        min-height: 320px;
    }

    .about-image .about-placeholder .signature-big {
        font-size: 36px;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }

    .workflow-steps {
        grid-template-columns: 1fr 1fr;
    }

    .news-card {
        flex: 0 0 calc(50% - 15px);
    }

    .contacts .container {
        grid-template-columns: 1fr;
    }

    .contacts-map {
        min-height: 300px;
    }
    
    .contacts-map iframe {
        min-height: 300px;
    }

    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }

    .cookie-banner .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .hero-pattern {
        width: 80%;
        height: 80%;
        top: -15%;
        right: -25%;
        opacity: 0.12;
    }

    .advantages-pattern {
        width: 70%;
        height: 70%;
        bottom: -20%;
        left: -30%;
        opacity: 0.12;
    }

    .nav {
        display: none;
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 70px;
        left: 20px;
        right: 20px;
        background: var(--primary);
        padding: 30px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav.open {
        display: flex;
    }

    .nav a.cta-nav {
        text-align: center;
    }

    .burger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }

    .hero .container {
        padding: 0 16px;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content .hero-sub {
        font-size: 15px;
    }

    .hero-image-placeholder {
        max-width: 250px;
    }

    .hero-image-placeholder .signature {
        font-size: 32px;
    }

    .rebranding-box {
        padding: 12px 16px;
        margin-bottom: 24px;
        border-radius: 12px;
    }

    .rebranding-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .rebranding-text p {
        font-size: 13px;
    }

    .rebranding-logos {
        gap: 10px;
    }

    .rebranding-logos .old-logo,
    .rebranding-logos .new-logo {
        height: 26px;
    }

    .rebranding-logos .arrow {
        font-size: 14px;
    }

    .about {
        padding: 60px 0;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .about-image .about-placeholder {
        min-height: 280px;
        padding: 40px 20px;
    }

    .about-image .about-placeholder .signature-big {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .about-image .about-placeholder .about-master-overlay p {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .about-image .about-placeholder .about-master-overlay {
        background: linear-gradient(135deg, rgba(30, 51, 90, 0.9) 0%, rgba(30, 51, 90, 0) 50%);
        padding: 20px;
    }

    .advantages {
        padding: 60px 0;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .advantages .section-header h2 {
        font-size: 30px;
    }

    .workflow {
        padding: 60px 0;
    }

    .workflow .section-header h2 {
        font-size: 30px;
    }

    .workflow-steps {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .news {
        padding: 60px 0;
    }

    .news .section-header h2 {
        font-size: 30px;
    }

    .news-card {
        flex: 0 0 calc(50% - 15px);
    }

    .news-card .news-body {
        padding: 20px;
    }

    .news-card:not(:has(.news-image)) .news-body {
        padding: 25px 20px;
    }

    .contacts {
        padding: 60px 0;
    }

    .contacts .container {
        gap: 40px;
    }

    .contacts-info h2 {
        font-size: 28px;
    }

    .contacts-map {
        min-height: 250px;
    }
    
    .contacts-map iframe {
        min-height: 250px;
    }

    .contacts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .contacts-title-group h2 {
        font-size: 28px;
    }

    .contacts-badge iframe {
        width: 130px;
        height: 44px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-pattern {
        width: 100%;
        height: 60%;
        top: -10%;
        right: -40%;
        opacity: 0.12;
    }

    .advantages-pattern {
        width: 80%;
        height: 50%;
        bottom: -15%;
        left: -40%;
        opacity: 0.12;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content .hero-sub {
        font-size: 14px;
    }

    .hero-content .btn-outline {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-image-placeholder {
        max-width: 200px;
        padding: 20px;
    }

    .hero-image-placeholder .signature {
        font-size: 24px;
    }

    .hero-image-placeholder .signature-sub {
        font-size: 10px;
        letter-spacing: 4px;
    }

    .rebranding-box {
        padding: 10px 12px;
        margin-bottom: 18px;
        border-radius: 10px;
    }

    .rebranding-text p {
        font-size: 12px;
    }

    .rebranding-logos .old-logo,
    .rebranding-logos .new-logo {
        height: 20px;
    }

    .rebranding-logos .arrow {
        font-size: 10px;
    }

    .rebranding-logos {
        gap: 6px;
    }

    .about-image .about-placeholder {
        min-height: 220px;
        padding: 20px 15px;
    }

    .about-image .about-placeholder .signature-big {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .about-image .about-placeholder .about-master-overlay p {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .about-image .about-placeholder .about-master-overlay {
        padding: 16px;
        background: linear-gradient(135deg, rgba(30, 51, 90, 0.92) 0%, rgba(30, 51, 90, 0) 40%);
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .advantage-item {
        padding: 25px 20px;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .workflow-step {
        padding: 25px 20px;
    }

    .news-card {
        flex: 0 0 100%;
    }

    .news-card .news-image {
        height: 160px;
    }

    .news-card .news-body {
        padding: 16px;
    }

    .news-card:not(:has(.news-image)) .news-body {
        padding: 20px 16px;
    }

    .news-controls button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .header-logo img {
        height: 40px;
    }

    .header-logo-text {
        font-size: 14px;
        padding-left: 8px;
    }

    .header-logo-text span {
        font-size: 9px;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .contacts-map {
        min-height: 200px;
    }
    
    .contacts-map iframe {
        min-height: 200px;
    }

    .contacts-info h2 {
        font-size: 28px;
    }

    .contacts-info .contact-item {
        flex-direction: column;
        gap: 4px;
    }

    .contacts-info .contact-item .label {
        min-width: auto;
    }

    .work-hours .row {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-align: center;
    }

    .contacts-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .contacts-title-group h2 {
        font-size: 24px;
    }

    .contacts-title-group .sub {
        font-size: 14px;
    }

    .contacts-badge iframe {
        width: 120px;
        height: 40px;
    }

    .cookie-banner .cookie-text {
        font-size: 14px;
    }

    .cookie-banner .cookie-buttons .btn-cookie {
        padding: 8px 18px;
        font-size: 13px;
    }

    .hero-pattern {
        width: 120%;
        height: 50%;
        top: -5%;
        right: -50%;
        opacity: 0.12;
    }

    .advantages-pattern {
        width: 100%;
        height: 40%;
        bottom: -10%;
        left: -50%;
        opacity: 0.12;
    }
}