/* Общие стили */
: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-nav-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header .navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    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);
}

.nav-cta-btn {
    border: none;
    background: linear-gradient(135deg, var(--secondary-color), #288bc2);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 4px 14px rgba(63, 167, 214, 0.25);
    line-height: 1.35;
    white-space: nowrap;
}

.nav-cta-btn:hover {
    background: linear-gradient(135deg, #4bb4e3, #227ea8);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(63, 167, 214, 0.35);
}

.nav-cta-btn:active {
    transform: translateY(0);
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(16, 42, 67, 0.06);
    border: 1px solid rgba(16, 42, 67, 0.1);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    border: none;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 5px 11px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.lang-btn:hover {
    color: var(--secondary-color);
    background: rgba(63, 167, 214, 0.12);
}

.lang-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 42, 67, 0.22);
}

/* Основной контент */
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;
}

.contact-actions {
    margin: 24px 0 28px;
    display: flex;
    justify-content: center;
}

.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;
}

/* Модальное окно */
body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 42, 67, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-dialog {
    position: relative;
    z-index: 1;
    background: #ffffff;
    width: 100%;
    max-width: 720px;
    max-height: min(92vh, 880px);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(16, 42, 67, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.is-open .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(16, 42, 67, 0.12);
    background: rgba(245, 248, 252, 0.9);
    color: var(--primary-color);
    font-size: 1.5rem;
    font-family: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    padding: 0;
}

.modal-close:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-header {
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
    text-align: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.45rem;
    color: var(--primary-color);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    background: #ffffff;
}

.modal-body iframe {
    display: block;
    width: 100%;
    height: 700px;
    border: none;
}

/* Адаптивность */
@media (max-width: 992px) {
    .header-nav-wrap {
        gap: 1.2rem;
    }

    .header .navigation ul {
        gap: 1rem;
    }

    .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-nav-wrap {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

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

    .lang-switcher {
        margin-top: 2px;
    }

    main {
        padding-top: 176px;
    }

    .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;
    }

    .modal {
        padding: 12px;
    }

    .modal-dialog {
        max-height: 94vh;
        border-radius: 18px;
    }

    .modal-header {
        padding: 16px 18px 12px;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body iframe {
        height: 600px;
    }
}