:root {
    color-scheme: light;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #2C3E50;
    background: #F5F8FB;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    scroll-margin-top: 0;
}

/* ==================================================
   HEADER
================================================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(44,62,80,0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    gap: 30px;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.logo-block {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: .25s ease;
}

.logo-block:hover {
    transform: translateY(-2px);
}

.site-logo {
    height: 65px;
    width: auto;
    display: block;
}

.logo-title {
    display: block;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-subtitle {
    display: block;
    font-size: 11px;
    letter-spacing: 5px;
    margin-top: 2px;
    color: #4A6B8A;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a,
.header-contacts a,
.footer a,
.contact-item a {
    text-decoration: none;
    color: #2C3E50;
    transition: 0.3s;
}

.nav a:hover,
.header-contacts a:hover,
.footer a:hover,
.contact-item a:hover {
    color: #4A6B8A;
}

/* ==================================================
   HERO
================================================== */

.hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(245,248,251,0.82), rgba(245,248,251,0.92)),
        url('images/hero-bg.webp') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right,
        rgba(107,142,170,0.20), transparent 30%),
        radial-gradient(circle at bottom left,
        rgba(74,107,138,0.15), transparent 25%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 760px;
    margin-left: 60px;
}

.hero-text {
    max-width: 760px;
}

.hero h1 {
    font-size: 54px;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #2C3E50;
}

.hero p {
    font-size: 20px;
    color: #4A6B8A;
    margin-bottom: 36px;
    max-width: 700px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 34px;
    border-radius: 12px;
    background: #2C3E50;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #4A6B8A;
    transform: translateY(-2px);
}

/* ==================================================
   ОБЩИЙ ЗАГОЛОВОК СЕКЦИИ
================================================== */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 14px;
    color: #2C3E50;
}

.section-header p {
    font-size: 18px;
    color: #6B8EAA;
    max-width: 700px;
    margin: 0 auto;
}


/* ==================================================
   SERVICES
================================================== */

.services {
    padding: 80px 0;
	
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* ----- КАРТОЧКА УСЛУГИ ----- */

.service-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid rgba(74,107,138,.10);
    box-shadow: 0 10px 30px rgba(44,62,80,.06);
    text-align: center;
    transition:
        translate .3s ease,
        box-shadow .3s ease;
}

.service-card:hover {
    translate: 0 -5px;
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.08));
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.08);
}

.service-card h3 {
    margin-bottom: 8px;
    font-size: 20px;
    color: #2C3E50;
}

.service-card p {
    color: #4A6B8A;
}

/* ==================================================
   ADVANTAGES
================================================== */

.advantages {
    padding: 80px 0;
    background: #EEF3F8;
}

.advantages-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* ----- КАРТОЧКА ПРЕИМУЩЕСТВА ----- */

.advantage-item {
    width: 320px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    background: #fff;
    padding: 32px 24px;
    border-radius: 16px;
    border: 1px solid rgba(74,107,138,.10);
    box-shadow: 0 10px 30px rgba(44,62,80,.06);
    transition:
        translate .3s ease,
        box-shadow .3s ease;
}

.advantage-item:hover {
    translate: 0 -5px;
}

.advantage-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.08));
}

.advantage-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s ease;
}

.advantage-item:hover .advantage-icon img {
    transform: scale(1.08);
}

.advantage-item h3 {
    margin-bottom: 8px;
    font-size: 20px;
    color: #2C3E50;
}

.advantage-item p {
    color: #4A6B8A;
}

/* ==================================================
   CONTACTS
================================================== */

.contacts {
    min-height: calc(100vh - 180px);
    padding: 80px 0;
    display: flex;
    align-items: center;
}

.contacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contacts-info h2 {
    font-size: 42px;
    margin-bottom: 18px;
    color: #2C3E50;
}

.contacts-info p {
    color: #4A6B8A;
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 16px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(44,62,80,0.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input {
    padding: 16px;
    border: 1px solid rgba(74,107,138,0.15);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color .3s;
}

.contact-form input:focus {
    border-color: #4A6B8A;
}

.contact-form button {
    border: none;
    padding: 16px;
    border-radius: 12px;
    background: #2C3E50;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #4A6B8A;
}

/* ==================================================
   FOOTER
================================================== */

.footer {
    background: #2C3E50;
    color: white;
    padding: 30px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer a {
    color: rgba(255,255,255,0.85);
}

/* ==================================================
   FLOATING CTA
================================================== */

.floating-cta {
    position: fixed;
    right: 25px;
    bottom: 25px;
    padding: 14px 22px;
    background: #2C3E50;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    z-index: 9999;
    transition: .3s ease;
}

.floating-cta:hover {
    background: #4A6B8A;
    transform: translateY(-3px);
}

/* ==================================================
   TABLET / MOBILE  ≤ 768px
================================================== */

@media (max-width: 768px) {

    html {
        scroll-padding-top: 140px;
    }

    .container {
        width: 94%;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
    }

    .site-logo {
        height: 70px;
        width: auto;
    }

    .nav {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .nav a {
        font-size: 15px;
    }

    .header-contacts {
        align-items: center;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero-text {
        margin-left: 0;
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

    .advantages-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-card,
    .advantage-item {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        box-sizing: border-box;
    }

    .contacts {
        min-height: auto;
        padding: 60px 0;
    }

    .contacts-container {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .contacts-info h2 {
        font-size: 32px;
    }

    .contact-form {
        width: 100%;
        padding: 24px;
        box-sizing: border-box;
    }

    .contact-form input,
    .contact-form button {
        width: 100%;
        box-sizing: border-box;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .floating-cta {
        right: 15px;
        bottom: 15px;
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* ==================================================
   SMALL PHONES  ≤ 480px
================================================== */

@media (max-width: 480px) {

    .site-logo {
        height: 55px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .nav {
        gap: 12px;
    }

    .nav a {
        font-size: 14px;
    }

    .section-header h2,
    .contacts-info h2 {
        font-size: 28px;
    }

    .contact-form {
        padding: 20px;
    }
}
