/* Общие стили */
:root {
    --primary-color: #102a43;
    --secondary-color: #3fa7d6;
    --accent-color: #f5b700;
    --background-light: #f5f8fc;
    --surface-color: #ffffff;
    --text-color: #23313f;
    --text-light: #ffffff;
    --border-color: rgba(16, 42, 67, 0.08);
    --shadow-soft: 0 18px 40px rgba(16, 42, 67, 0.12);
    --shadow-card: 0 10px 30px rgba(16, 42, 67, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background:
        radial-gradient(circle at top left, rgba(63, 167, 214, 0.22), transparent 22%),
        linear-gradient(180deg, #fdfefe 0%, #f6f9fd 100%);
}

.container {
    width: min(85%, 1120px);
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--primary-color);
}

h1 {
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    line-height: 1.15;
    margin: 0;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 50px;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

p {
    font-weight: 400;
    margin: 0 0 1rem;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.86);
    color: var(--primary-color);
    padding: 0.9rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(16, 42, 67, 0.08);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(16, 42, 67, 0.08);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.header .navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.3rem;
}

.header .navigation a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 500;
    transition: color 0.25s ease, transform 0.25s ease;
}

.header .navigation a:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Основной контент */
main {
    padding-top: 82px;
}

.content-section {
    padding: 88px 0;
}

.bg-light {
    background: linear-gradient(180deg, rgba(63, 167, 214, 0.05), rgba(16, 42, 67, 0.03));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Секция Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(16, 42, 67, 0.95), rgba(16, 42, 67, 0.82)),
        radial-gradient(circle at top right, rgba(63, 167, 214, 0.48), transparent 30%);
    color: var(--text-light);
    text-align: center;
    padding: 120px 0 100px;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.hero-section::before {
    width: 340px;
    height: 340px;
    top: -120px;
    right: -80px;
}

.hero-section::after {
    width: 220px;
    height: 220px;
    left: -60px;
    bottom: -70px;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.hero-section h1 {
    color: var(--text-light);
    font-weight: 700;
    max-width: 850px;
    margin: 0 auto 18px;
}

.hero-section .subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 720px;
    margin: 0 auto 28px;
    opacity: 0.92;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #ffd45c);
    color: #102a43;
    box-shadow: 0 16px 30px rgba(245, 183, 0, 0.24);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--text-light);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    max-width: 880px;
    margin: 0 auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 16px 18px;
    backdrop-filter: blur(10px);
}

.stat-item strong {
    display: block;
    font-size: 1.35rem;
    color: #fff;
}

.stat-item span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Секция "Обо мне" - обертка */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 42px;
    margin-bottom: 36px;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 290px;
    height: 290px;
    object-fit: cover;
    object-position: top;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
    border: 6px solid rgba(63, 167, 214, 0.14);
}

.about-text {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
}

/* Секция "Обо мне" - Преимущества */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 24px;
    text-align: center;
}

.benefit-card {
    padding: 24px 20px;
    background: var(--surface-color);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.benefit-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Секция "Услуги" */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(16, 42, 67, 0.08);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 0 0 999px 0;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(16, 42, 67, 0.16);
}

.service-card h3 {
    margin-top: 12px;
}

/* Секция "Стоимость" */
.pricing-grid {
    max-width: 760px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.price-item:last-child {
    border-bottom: none;
}

.price-item:nth-child(odd) {
    background: linear-gradient(180deg, rgba(63, 167, 214, 0.05), rgba(255,255,255,0.8));
}

.price-item .price {
    font-weight: 700;
    color: var(--secondary-color);
    white-space: nowrap;
}

.note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #677381;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #102a43 0%, #0c1d31 100%);
    color: var(--text-light);
    text-align: center;
    padding: 64px 0 48px;
}

.footer .container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 38px 24px;
}

.footer h2 {
    color: var(--text-light);
    margin-bottom: 14px;
}

.footer p {
    font-weight: 400;
}

.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer a:hover {
    color: #9fd9f5;
}

.copyright {
    margin-top: 32px;
    font-size: 0.9rem;
    opacity: 0.72;
}

/* Адаптивность */
@media (max-width: 992px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        width: 100%;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    .header .container {
        flex-direction: column;
        gap: 12px;
    }

    .header .navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.9rem 1rem;
    }

    main {
        padding-top: 144px;
    }

    .content-section {
        padding: 62px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .hero-section {
        padding-top: 108px;
    }

    .hero-section .subtitle {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 360px;
        margin: 0 auto 34px;
    }

    .btn {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .footer {
        padding: 48px 0 32px;
    }

    .footer .container {
        width: 90%;
        padding: 24px 18px;
        box-sizing: border-box;
    }

    .footer p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .about-image img {
        width: 220px;
        height: 220px;
    }

    .price-item {
        flex-direction: column;
        align-items: flex-start;
    }
}