/* ========= RESET & BASE ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-dark: #1e3a5f;
    --blue: #2c5282;
    --blue-light: #4a7bb8;
    --blue-soft: #e8f0fa;
    --yellow: #f6c94a;
    --yellow-bright: #ffb800;
    --yellow-light: #fef3c7;
    --yellow-soft: #fffbeb;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #fdfcf7;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(30, 58, 95, 0.08);
    --shadow-hover: 0 20px 50px rgba(30, 58, 95, 0.15);
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: 'Montserrat', -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.accent {
    color: var(--yellow);
    background: linear-gradient(120deg, var(--yellow) 0%, #f0b429 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========= HEADER (ПОЛНОСТЬЮ ПЕРЕДЕЛАН) ========= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(253, 252, 247, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    padding: 14px 0;
    border-bottom: 1px solid rgba(44, 82, 130, 0.05);
}

.header.scrolled {
    box-shadow: 0 4px 25px rgba(30, 58, 95, 0.08);
    padding: 10px 0;
    background: rgba(253, 252, 247, 0.97);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: nowrap;
}

/* --- ЛОГО --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--blue-dark);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.logo:hover {
    transform: scale(1.03);
}

.logo-icon {
    font-size: 1.8rem;
    animation: rotateGlobe 20s linear infinite;
    display: inline-block;
    line-height: 1;
}

@keyframes rotateGlobe {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- НАВИГАЦИЯ (НОВЫЙ ЧИСТЫЙ СТИЛЬ) --- */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(232, 240, 250, 0.7);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(44, 82, 130, 0.08);
}

.nav-list li {
    list-style: none;
}

.nav-list a {
    position: relative;
    display: inline-block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--blue-dark);
    padding: 9px 18px;
    border-radius: 50px;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.nav-list a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 82, 130, 0.3);
}

/* --- КНОПКА ТЕЛЕФОНА --- */
.phone-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--yellow-bright) 0%, #ff8c00 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5);
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
    flex-shrink: 0;
    animation: phoneGlow 2s ease-in-out infinite;
}

.phone-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50px;
    border: 2px solid var(--yellow-bright);
    animation: phonePulseRing 2s ease-out infinite;
    pointer-events: none;
}

@keyframes phonePulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

@keyframes phoneGlow {
    0%, 100% { box-shadow: 0 6px 20px rgba(255, 140, 0, 0.5); }
    50% { box-shadow: 0 8px 28px rgba(255, 140, 0, 0.75); }
}

.phone-btn:hover {
    transform: translateY(-3px) scale(1.03);
}

.phone-icon {
    animation: ring 2.5s ease-in-out infinite;
    display: inline-block;
    font-size: 1.1rem;
}

@keyframes ring {
    0%, 80%, 100% { transform: rotate(0); }
    10%, 30%, 50% { transform: rotate(15deg); }
    20%, 40%, 60% { transform: rotate(-15deg); }
}

/* --- БУРГЕР --- */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    flex-shrink: 0;
}

.burger span {
    width: 26px;
    height: 3px;
    background: var(--blue-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========= HERO (ВО ВСЮ ШИРИНУ ЭКРАНА) ========= */
.hero {
    padding: calc(var(--header-height) + 40px) 0 90px;
    background: linear-gradient(135deg, var(--blue-soft) 0%, var(--yellow-soft) 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(246,201,74,0.2) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74,123,184,0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -150px;
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* ========= HERO — УМЕНЬШЕННАЯ КАРТИНКА ========= */

/* Сетка: картинка занимает меньше места, текст — больше */
.hero-inner {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* Контейнер картинки: ограничиваем максимальную ширину */
.hero-image {
    max-width: 420px;
    width: 100%;
    justify-self: center;
}

/* Сама картинка: закруглённая, с фиксированной пропорцией */
.hero-image img {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    display: block;
}

.hero-image:hover img {
    transform: scale(1.03) rotate(-1deg);
}

/* Адаптив: на больших экранах картинка чуть больше, но всё равно компактная */
@media (min-width: 1400px) {
    .hero-image,
    .hero-image img {
        max-width: 460px;
    }
}

/* Средние экраны — делаем картинку ещё меньше */
@media (max-width: 1200px) {
    .hero-inner {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 45px;
    }
    .hero-image,
    .hero-image img {
        max-width: 380px;
    }
}

/* Планшеты — картинка сверху, текст снизу, картинка по центру */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    .hero-image img {
        max-width: 400px;
        aspect-ratio: 16 / 10;
    }
}

/* Смартфоны */
@media (max-width: 576px) {
    .hero-image,
    .hero-image img {
        max-width: 100%;
    }
    .hero-image img {
        aspect-ratio: 4 / 3;
    }
}


.hero-sub {
    display: inline-block;
    padding: 9px 20px;
    background: var(--yellow-light);
    color: var(--blue-dark);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    margin-bottom: 22px;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--blue-dark);
    margin-bottom: 22px;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 16px;
}

.hero-text {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.hero-lead strong, .hero-text strong {
    color: var(--blue-dark);
    font-weight: 700;
}

.hero-benefits {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--blue-dark);
    font-weight: 500;
    padding: 6px 0;
}

.hero-benefits li span {
    font-size: 1.2rem;
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.02rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44, 82, 130, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--blue-dark);
    border: 2px solid var(--yellow);
}

.btn-secondary:hover {
    background: var(--yellow);
    transform: translateY(-3px);
}

/* Fade-in animations */
.fade-in-left, .fade-in-right {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in-left { animation-name: fadeInLeft; }
.fade-in-right { animation-name: fadeInRight; animation-delay: 0.2s; }

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========= SECTIONS ========= */
section { padding: 95px 0; }

.section-title {
    font-size: 2.7rem;
    font-weight: 800;
    text-align: center;
    color: var(--blue-dark);
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), #f0b429);
    margin: 18px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 55px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========= WORKS ========= */
.works { background: var(--white); }

.works-intro {
    max-width: 900px;
    margin: 0 auto 55px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    padding: 28px;
    background: var(--blue-soft);
    border-radius: var(--radius);
    border-left: 5px solid var(--yellow);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--yellow-soft) 100%);
    padding: 42px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(246, 201, 74, 0.2);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--yellow);
}

.work-icon {
    font-size: 3.2rem;
    margin-bottom: 22px;
    display: inline-block;
    transition: var(--transition);
}

.work-card:hover .work-icon {
    transform: scale(1.2) rotate(-10deg);
}

.work-card h3 {
    color: var(--blue-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.work-card ul li {
    padding: 9px 0 9px 26px;
    position: relative;
    color: var(--text);
    font-size: 1.05rem;
}

.work-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-weight: 700;
    font-size: 1.15rem;
}

.work-card p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.highlight-card {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: white;
}

.highlight-card h3 { color: white; }
.highlight-card p { color: rgba(255, 255, 255, 0.9); }

/* ========= SERVICES ========= */
.services {
    background: linear-gradient(180deg, var(--yellow-soft) 0%, var(--white) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 42px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--blue), var(--yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    background: linear-gradient(135deg, var(--blue-soft), var(--yellow-light));
    border-radius: 50%;
    margin-bottom: 22px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, var(--yellow), #f0b429);
}

.service-card h3 {
    color: var(--blue-dark);
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: 1.02rem;
}

.service-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue);
    padding-top: 16px;
    border-top: 2px dashed var(--yellow-light);
}

/* ========= ENGINEER ========= */
.engineer {
    background: var(--blue-dark);
    position: relative;
    overflow: hidden;
}

.engineer::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(246,201,74,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.engineer-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 62px 50px;
    border-radius: 24px;
    border: 1px solid rgba(246, 201, 74, 0.3);
    text-align: center;
    position: relative;
    z-index: 1;
}

.engineer-badge {
    display: inline-block;
    padding: 9px 20px;
    background: var(--yellow);
    color: var(--blue-dark);
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-bottom: 22px;
}

.engineer-card h2 {
    color: white;
    font-size: 2.4rem;
    margin-bottom: 30px;
}

.engineer-info h3 {
    color: var(--yellow);
    font-size: 1.7rem;
    margin-bottom: 26px;
}

.engineer-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    max-width: 520px;
    margin: 0 auto;
}

.detail-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 16px 22px;
    border-radius: 10px;
    border-left: 3px solid var(--yellow);
    transition: var(--transition);
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
}

.detail-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.detail-value {
    color: white;
    font-weight: 600;
    font-size: 1.15rem;
}

/* ========= CONTACTS ========= */
.contacts { background: var(--white); }

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacts-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-block {
    display: flex;
    gap: 20px;
    padding: 26px;
    background: linear-gradient(135deg, var(--blue-soft) 0%, var(--yellow-soft) 100%);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-block:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow);
}

.contact-block h4 {
    color: var(--blue-dark);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-block p { font-size: 1.02rem; }

.contact-block a {
    color: var(--blue);
    font-weight: 600;
    transition: var(--transition);
}

.contact-block a:hover { color: var(--yellow); }

.contact-block-phone {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(44, 82, 130, 0.3);
    border: 2px solid var(--yellow);
    animation: phoneBlockGlow 3s ease-in-out infinite;
}

@keyframes phoneBlockGlow {
    0%, 100% { box-shadow: 0 15px 40px rgba(44, 82, 130, 0.3), 0 0 0 0 rgba(246, 201, 74, 0.4); }
    50% { box-shadow: 0 15px 40px rgba(44, 82, 130, 0.4), 0 0 0 8px rgba(246, 201, 74, 0); }
}

.contact-block-phone::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(246, 201, 74, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.contact-block-phone:hover {
    transform: translateX(8px) scale(1.02);
}

.contact-block-phone h4 {
    color: var(--yellow);
    font-size: 1.25rem;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.contact-icon-phone {
    background: linear-gradient(135deg, var(--yellow-bright) 0%, #ff8c00 100%);
    animation: phoneIconPulse 1.8s ease-in-out infinite;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.5);
}

@keyframes phoneIconPulse {
    0%, 100% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.08) rotate(-8deg); }
    75% { transform: scale(1.08) rotate(8deg); }
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.big-phone {
    display: inline-block;
    color: white !important;
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.big-phone:hover {
    color: var(--yellow) !important;
    transform: translateX(5px);
}

.phone-note {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: rgba(246, 201, 74, 0.2);
    color: var(--yellow);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(246, 201, 74, 0.3);
    position: relative;
    z-index: 1;
}

/* Hours table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.hours-table td {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(30, 58, 95, 0.15);
    font-size: 1rem;
}

.hours-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--blue-dark);
}

.day-off { color: #dc2626 !important; }

.break-time {
    margin-top: 14px;
    padding: 9px 16px;
    background: rgba(246, 201, 74, 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--blue-dark);
    font-weight: 500;
    display: inline-block;
}

.contacts-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    min-height: 500px;
    transition: var(--transition);
}

.contacts-map:hover { transform: scale(1.01); }

.contacts-map iframe {
    display: block;
    min-height: 500px;
}

/* ========= FOOTER ========= */
.footer {
    background: var(--blue-dark);
    color: white;
    padding: 32px 0;
    text-align: center;
}

.footer p { margin-bottom: 5px; font-size: 1rem; }
.footer-sub { color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; }

/* ========= RESPONSIVE ========= */

/* Средние экраны — уменьшаем отступы меню */
@media (max-width: 1200px) {
    .header-inner { gap: 16px; }
    .nav-list a { padding: 9px 14px; font-size: 0.88rem; }
    .logo-text { font-size: 1.05rem; }
    .hero-inner { padding: 0 40px; gap: 50px; }
}

/* Ноутбуки — прячем текст навигации, оставляем только телефон + бургер */
@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(253, 252, 247, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 25px 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-200%);
        transition: transform 0.4s ease;
        display: flex;
        justify-content: flex-start;
    }

    .nav.open { transform: translateY(0); }

    .nav-list {
        flex-direction: column;
        width: 100%;
        background: transparent;
        border: none;
        padding: 0;
        gap: 8px;
    }

    .nav-list li { width: 100%; }

    .nav-list a {
        display: block;
        text-align: center;
        padding: 12px 20px;
        font-size: 1rem;
        background: rgba(232, 240, 250, 0.6);
    }

    .burger { display: flex; }
}

/* Планшеты */
@media (max-width: 992px) {
    html { font-size: 16px; }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 30px;
    }

    .hero-content h1 { font-size: 2.4rem; }
    .contacts-grid { grid-template-columns: 1fr; }
}

/* Смартфоны */
@media (max-width: 768px) {
    .header-inner { gap: 10px; }

    .logo-icon { font-size: 1.6rem; }
    .logo-text { font-size: 0.95rem; }

    .phone-btn { padding: 11px 15px; }
    .phone-text { display: none; }
    .phone-btn { gap: 0; }

    .section-title { font-size: 2.1rem; }
    .hero-content h1 { font-size: 2rem; }
    .hero { padding: calc(var(--header-height) + 20px) 0 70px; }
    .hero-inner { padding: 0 20px; }

    .engineer-card { padding: 42px 26px; }
    .engineer-card h2 { font-size: 1.9rem; }

    section { padding: 65px 0; }

    .big-phone { font-size: 1.3rem !important; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .btn { text-align: center; display: block; }
    .contact-block { flex-direction: column; }
    .logo-text { display: none; }
}






/* ========= HERO — ПЕРЕРАБОТАН: КАРТИНКА СПРАВА, НЕ НА ВСЮ ШИРИНУ ========= */

.hero {
    padding: calc(var(--header-height) + 40px) 0 90px;
    background: linear-gradient(135deg, var(--blue-soft) 0%, var(--yellow-soft) 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Основная сетка: текст слева, картинка справа */
.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Контент занимает первую колонку */
.hero-content {
    order: 1;
}

/* Картинка справа — компактная */
.hero-image {
    order: 2;
    max-width: 450px;
    width: 100%;
    justify-self: end;
}

.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    display: block;
}

.hero-image:hover img {
    transform: scale(1.03) rotate(-1deg);
}

/* Анимации появления: текст слева, картинка справа */
.fade-in-left {
    animation-name: fadeInLeft;
}
.fade-in-right {
    animation-name: fadeInRight;
    animation-delay: 0.2s;
}

/* Адаптив */
@media (max-width: 1100px) {
    .hero-inner {
        grid-template-columns: 1.2fr 1fr;
        gap: 45px;
    }
    .hero-image {
        max-width: 400px;
    }
}

@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-content {
        order: 1;
    }
    .hero-image {
        order: 2;
        max-width: 450px;
        justify-self: center;
    }
    .hero-image img {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 576px) {
    .hero-image {
        max-width: 100%;
    }
    .hero-image img {
        aspect-ratio: 4 / 3;
    }
}

/* ========= УСЛУГИ: БАННЕР СКИДКИ + СВОБОДНЫЙ СТИЛЬ БЕСПЛАТНОЙ УСЛУГИ ========= */

.discount-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: 850px;
    margin: 0 auto 50px;
    padding: 22px 30px;
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
    border-radius: var(--radius);
    border: 2px solid var(--yellow);
    box-shadow: 0 15px 40px rgba(44, 82, 130, 0.25);
    position: relative;
    overflow: hidden;
    animation: discountGlow 3s ease-in-out infinite;
}

@keyframes discountGlow {
    0%, 100% { box-shadow: 0 15px 40px rgba(44, 82, 130, 0.25), 0 0 0 0 rgba(246, 201, 74, 0.4); }
    50% { box-shadow: 0 15px 40px rgba(44, 82, 130, 0.35), 0 0 0 8px rgba(246, 201, 74, 0); }
}

.discount-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(246, 201, 74, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.discount-icon {
    font-size: 2.5rem;
    animation: giftShake 2.5s ease-in-out infinite;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

@keyframes giftShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-8deg) scale(1.05); }
    75% { transform: rotate(8deg) scale(1.05); }
}

.discount-banner p {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.discount-banner strong {
    color: var(--yellow);
    font-weight: 800;
}

/* Подпись к цене (например "за один участок") */
.price-sub {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 4px;
    text-transform: none;
    letter-spacing: 0;
}

/* Карточка БЕСПЛАТНОЙ консультации — выделенная */
.service-card-free {
    background: linear-gradient(135deg, var(--yellow-soft) 0%, #ffeaa0 100%);
    border: 2px solid var(--yellow);
    position: relative;
}

.service-card-free::after {
    content: 'ХИТ';
    position: absolute;
    top: 18px;
    right: 18px;
    background: linear-gradient(135deg, var(--yellow-bright) 0%, #ff8c00 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
    animation: hitPulse 2s ease-in-out infinite;
}

@keyframes hitPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.service-card-free .service-icon {
    background: linear-gradient(135deg, var(--yellow) 0%, #f0b429 100%);
}

.price-free {
    background: linear-gradient(135deg, var(--yellow-bright) 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem !important;
    animation: freePulse 1.8s ease-in-out infinite;
    display: inline-block;
}

@keyframes freePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Адаптив баннера скидки */
@media (max-width: 768px) {
    .discount-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 22px;
        gap: 12px;
    }
    .discount-banner p {
        font-size: 1rem;
    }
    .discount-icon {
        font-size: 2.2rem;
    }
}




/* ========= HERO: ЗАГОЛОВОК ПО ЦЕНТРУ ВО ВСЮ ШИРИНУ ========= */

/* Верхний блок с подписью и заголовком — по центру, на всю ширину */
.hero-header {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Подпись над заголовком */
.hero-header .hero-sub {
    display: inline-block;
    padding: 9px 22px;
    background: var(--yellow-light);
    color: var(--blue-dark);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    margin-bottom: 22px;
}

/* Заголовок — крупный, по центру */
.hero-header h1 {
    font-size: 3.3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--blue-dark);
    margin: 0;
}

/* Убираем старые подпись и заголовок внутри hero-content (если вдруг остались) */
.hero-content > .hero-sub,
.hero-content > h1 {
    display: none;
}

/* Нижняя сетка: текст слева, картинка справа (без заголовка) */
.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.hero-content {
    order: 1;
}

.hero-image {
    order: 2;
    max-width: 450px;
    width: 100%;
    justify-self: end;
}

.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
    display: block;
}

.hero-image:hover img {
    transform: scale(1.03) rotate(-1deg);
}

/* Убираем верхний отступ у первого абзаца текста */
.hero-content .hero-lead {
    margin-top: 0;
}

/* Адаптив */
@media (max-width: 1100px) {
    .hero-header h1 {
        font-size: 2.8rem;
    }
    .hero-inner {
        grid-template-columns: 1.2fr 1fr;
        gap: 45px;
    }
    .hero-image {
        max-width: 400px;
    }
}

@media (max-width: 992px) {
    .hero-header {
        margin-bottom: 40px;
    }
    .hero-header h1 {
        font-size: 2.4rem;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-image {
        max-width: 450px;
        justify-self: center;
    }
    .hero-image img {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 576px) {
    .hero-header h1 {
        font-size: 2rem;
    }
    .hero-header .hero-sub {
        font-size: 0.85rem;
        padding: 7px 16px;
    }
    .hero-image {
        max-width: 100%;
    }
    .hero-image img {
        aspect-ratio: 4 / 3;
    }
}



/* ========= БЛОК ОПЫТА В HERO ========= */

.hero-experience {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 750px;
    margin: 0 auto 50px;
    padding: 22px 35px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(246, 201, 74, 0.3);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.exp-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.exp-number {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--yellow-bright) 0%, #ff8c00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.exp-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.35;
}

.exp-text strong {
    color: var(--blue-dark);
    font-weight: 700;
}

.exp-divider {
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--yellow), transparent);
    flex-shrink: 0;
}

/* Адаптив */
@media (max-width: 768px) {
    .hero-experience {
        flex-direction: column;
        gap: 20px;
        padding: 22px 25px;
    }
    .exp-divider {
        width: 60%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    }
    .exp-item { width: 100%; }
    .exp-number { font-size: 2.4rem; }
}

/* ========= УПРОЩЁННЫЙ ТЕКСТ ПРО СКИДКИ ========= */

/* Отменяем старый яркий баннер, если он остался */
.discount-banner { display: none !important; }

/* Новый простой текст */
.discount-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto 45px;
    padding: 12px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    background: transparent;
    border: none;
    box-shadow: none;
    animation: none;
}

.discount-note strong {
    color: var(--blue-dark);
    font-weight: 700;
}

.discount-note-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .discount-note {
        font-size: 0.95rem;
        padding: 10px 15px;
        flex-direction: column;
        gap: 6px;
    }
}


/* ========= СКРЫТИЕ БЛОКА ПРО СКИДКИ ========= */
.discount-banner,
.discount-note {
    display: none !important;
}
