* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #263447;
    background: #f7f9fc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.65;
}

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

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* Шапка */

.header {
    padding: 18px 0;
    background: #ffffff;
    border-bottom: 1px solid #e1e7ef;
}

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

.logo {
    color: #173b72;
    font-size: 27px;
    font-weight: 700;
    text-decoration: none;
}

.phone {
    color: #173b72;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

/* Главный экран */

.hero {
    padding: 80px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #173b72, #2878c8);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 55px;
}

.label {
    margin: 0 0 15px;
    color: #cce6ff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.dark-label {
    color: #2878c8;
}

h1 {
    max-width: 720px;
    margin: 0 0 22px;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.12;
}

h2 {
    margin: 0 0 22px;
    color: #173b72;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
}

h3 {
    margin: 0 0 10px;
    color: #173b72;
    font-size: 25px;
    line-height: 1.25;
}

.intro {
    max-width: 680px;
    margin: 0 0 20px;
    font-size: 21px;
}

.price {
    margin: 20px 0;
    font-size: 24px;
    font-weight: 700;
}

.hero-image img {
    width: 100%;
    height: 390px;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
}

/* Кнопки */

.order-buttons,
.contact-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-top: 30px;
}

.order-button {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 350px;
    min-height: 76px;
    padding: 14px 18px;
    color: #ffffff;
    border-radius: 11px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.order-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.order-button strong,
.order-button small {
    display: block;
}

.order-button strong {
    font-size: 18px;
    line-height: 1.3;
}

.order-button small {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.3;
}

.icon {
    display: flex;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    color: #1764bd;
    font-size: 17px;
    font-weight: 700;
    background: #ffffff;
    border-radius: 50%;
}

.vk-button {
    background: #087bea;
}

.telegram-button {
    background: #159bd7;
}

/* Общие секции */

.audience,
.services,
.advantages,
.contacts {
    padding: 80px 0;
}

.audience {
    background: #fffaf0;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 55px;
}

.two-columns p {
    max-width: 600px;
}

.two-columns img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 16px;
}

.text-link {
    display: inline-block;
    margin-top: 12px;
    color: #1764bd;
    font-weight: 700;
    text-decoration: none;
}

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

/* Карточки услуг */

.services {
    background: #ffffff;
}

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

.card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e0e7ef;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(23, 59, 114, 0.08);
}

.card-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.card-content {
    padding: 24px;
}

/* Преимущества */

.advantages {
    background: #eaf3ff;
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 35px;
    max-width: 850px;
}

.advantage {
    display: flex;
    align-items: center;
    gap: 14px;
}

.advantage p {
    margin: 0;
}

.check {
    display: flex;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    color: #ffffff;
    font-weight: 700;
    background: #238443;
    border-radius: 50%;
}

/* Контакты */

.contacts {
    background: #ffffff;
}

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

.contact-data a {
    color: #1764bd;
    font-weight: 700;
    text-decoration: none;
}

.contact-buttons {
    align-items: center;
    margin-top: 0;
}

.footer {
    padding: 25px 0;
    color: #64748b;
    text-align: center;
    background: #edf1f5;
}

.footer p {
    margin: 0;
}

/* Телефон */

@media (max-width: 800px) {
    body {
        font-size: 17px;
    }

    .hero-grid,
    .two-columns,
    .contacts-box {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img,
    .two-columns img {
        height: 280px;
    }

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

    .advantages-list {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        align-items: flex-start;
    }
}

@media (max-width: 500px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-button {
        width: 100%;
    }

    h1 {
        font-size: 40px;
    }
}