/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #101623;
    background:
        radial-gradient(circle at top, rgba(241, 196, 15, 0.12), transparent 30%),
        linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
    line-height: 1.6;
}

img {
    display: block;
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 12, 22, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.logo img {
    height: 54px;
    width: auto;
}

.main-nav,
.lang-switcher {
    display: flex;
    gap: 18px;
    align-items: center;
}

.main-nav a,
.lang-switcher a {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    opacity: 0.92;
}

.main-nav a:hover,
.lang-switcher a:hover {
    color: #f0c441;
}

/* Page */
.page-section {
    padding: 56px 0 80px;
}

.page-heading {
    margin-bottom: 28px;
}

.page-heading h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
    color: #08111f;
}

.page-heading p {
    margin-top: 10px;
    color: #536074;
    max-width: 760px;
}

.editable-content > *:first-child {
    margin-top: 0 !important;
}

.editable-content > *:last-child {
    margin-bottom: 0 !important;
}

.editable-content p,
.editable-content ul,
.editable-content ol {
    margin: 0 0 18px;
}

.editable-content h2 {
    margin: 32px 0 14px;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.15;
}

.editable-content h3 {
    margin: 24px 0 12px;
    font-size: 22px;
    line-height: 1.2;
}

.editable-content ul,
.editable-content ol {
    padding-left: 22px;
}

.editable-content .lead {
    max-width: 760px;
    font-size: 19px;
    color: #526174;
}

.editable-content .page-hero {
    position: relative;
    overflow: hidden;
    padding: 48px;
    border-radius: 24px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(6, 15, 32, 0.92), rgba(16, 38, 78, 0.88)),
        linear-gradient(180deg, #162033 0%, #0e1320 100%);
    box-shadow: 0 24px 60px rgba(12, 19, 35, 0.16);
    margin-bottom: 28px;
}

.editable-content .page-hero::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(240, 196, 65, 0.16);
    filter: blur(10px);
}

.editable-content .page-hero h2,
.editable-content .page-hero h3,
.editable-content .page-hero p {
    position: relative;
    z-index: 1;
}

.editable-content .page-hero h2 {
    color: #fff;
    margin-top: 0;
    font-size: clamp(28px, 5vw, 48px);
}

.editable-content .page-hero p {
    max-width: 760px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.btn,
.editable-content .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    background: #f0c441;
    color: #08111f;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 12px 30px rgba(240, 196, 65, 0.28);
}

.btn:hover,
.editable-content .button:hover {
    transform: translateY(-2px);
    background: #e2b730;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: none;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.feature-grid,
.stats-grid,
.info-grid {
    display: grid;
    gap: 18px;
    margin: 28px 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.stat-box,
.info-card {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(14, 20, 32, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(10, 17, 29, 0.08);
}

.stat-box strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 8px;
    color: #0b1d3e;
}

.cta-box {
    margin-top: 30px;
    border-radius: 24px;
    padding: 28px 32px;
    color: #fff;
    background: linear-gradient(135deg, #15284f, #0a1120);
    box-shadow: 0 18px 50px rgba(10, 17, 29, 0.14);
}

.cta-box h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 8px;
}

.cta-box p {
    color: rgba(255,255,255,0.82);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
    gap: 22px;
    margin-top: 22px;
}

.contact-form-box,
.contact-info-box {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 50px rgba(10, 17, 29, 0.08);
    border: 1px solid rgba(14, 20, 32, 0.08);
}

.contact-form-box form {
    display: grid;
    gap: 14px;
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #d5dce8;
    outline: none;
    font: inherit;
    background: #fff;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #1c4ca4;
    box-shadow: 0 0 0 4px rgba(28, 76, 164, 0.12);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}

.contact-benefits {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    color: #20304b;
}

/* Alerts */
.success,
.error-message {
    margin: 0 0 20px;
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 700;
}

.success {
    background: #eaf8ef;
    color: #1f6a37;
    border: 1px solid #c4ebd0;
}

.error-message {
    background: #fff0f0;
    color: #9f2c2c;
    border: 1px solid #f0c3c3;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(10, 17, 29, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 16px;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.empty-gallery {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255,255,255,0.8);
    border: 1px dashed #ccd4e2;
    color: #516074;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(4, 10, 20, 0.84);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox img {
    max-width: min(1200px, 100%);
    max-height: 90vh;
    border-radius: 18px;
}

/* Footer */
.footer {
    margin-top: 40px;
    color: #f5f7fb;
    background: linear-gradient(180deg, #0c1320, #0b1018);
}

.footer-inner {
    padding: 30px 0;
}

.footer-bottom {
    padding: 16px 0 22px;
    color: rgba(255,255,255,0.64);
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

/* Responsive */
@media (max-width: 960px) {
    .main-nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-grid,
    .stats-grid,
    .info-grid,
    .gallery,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editable-content .page-hero {
        padding: 36px 28px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .page-section {
        padding: 32px 0 56px;
    }

    .feature-grid,
    .stats-grid,
    .info-grid,
    .gallery,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .editable-content .button {
        width: 100%;
    }

    .logo img {
        height: 46px;
    }
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-col {
    max-width: 400px;
    text-align: center;
}

/* ОБЩИЙ КОНТЕЙНЕР */
.home-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* HERO */
.hero {
    position: relative;
    margin-bottom: 50px;
}

.hero img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* затемнение как на норм сайтах */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    border-radius: 12px;
}

/* текст поверх */
.hero-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
}

.hero-text h1 {
    font-size: 38px;
    margin: 0;
}

.hero-text p {
    font-size: 18px;
    margin-top: 10px;
}

/* INTRO */
.intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.intro h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.intro p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.intro .highlight {
    font-weight: 600;
    color: #000;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: #f4b400;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-card img {
    width: 80px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.4;
}

/* АДАПТИВ */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-text {
        bottom: 15px;
        left: 15px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 14px;
    }
}


/* ОБЩИЙ */
.home-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* HERO */
.hero {
    position: relative;
    margin-bottom: 50px;
}

.hero img {
    width: 100%;
    border-radius: 12px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    border-radius: 12px;
}

.hero-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
}

.hero-text h1 {
    font-size: 38px;
    margin: 0;
}

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

/* ВЕРХНИЕ КАРТОЧКИ */
.top-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-card img {
    width: 80px;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    color: #555;
    font-size: 14px;
}

/* INTRO */
.intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.intro h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.intro p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.intro .highlight {
    font-weight: 600;
    color: #000;
}

/* УСЛУГИ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: #f4b400;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-card img {
    width: 80px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
}

/* АДАПТИВ */
@media (max-width: 900px) {
    .top-features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-text {
        bottom: 15px;
        left: 15px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 14px;
    }
}

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.partners img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: 0.3s;
}

.partners img:hover {
  opacity: 1;
  transform: scale(1.05);
}


