﻿body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: #f6f8fb;
  color: #0b1b2b;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
.header {
  background: white;
  border-bottom: 1px solid #e6eef7;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  height: 50px;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #0b1b2b;
  font-weight: 500;
}

.btn {
    background: #0b3d91;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.2s;
    display: inline-block;
    box-shadow: none; /* убрали свечение */
}

    .btn:hover {
        transform: translateY(-1px);
        background: #0a357f;
        box-shadow: none; /* убрали hover glow */
    }
/* SECTIONS */
.section {
  padding: 70px 0;
}

.dark {
  background: #0b1b2b;
  color: white;
}

/* GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e6eef7;
}

/* SPLIT */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 12px;
}

/* HERO */
.hero {
  padding: 80px 0;
}

.hero h1 {
  font-size: 42px;
}
:root {
    --bg: #f5f7fb;
    --text: #0b1b2b;
    --blue: #0b3d91;
    --line: #e6eef7;
    --dark: #0b1b2b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* HEADER (единый) */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo {
    height: 38px;
}

nav a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

/* BUTTON */
.btn {
    background: var(--blue);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(11,61,145,0.2);
    }

/* HERO (v4 уровень) */
.hero {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(11,61,145,0.2), transparent 60%);
        top: -200px;
        right: -200px;
        filter: blur(40px);
    }

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero h1 {
    font-size: 46px;
    line-height: 1.1;
}

.hero p {
    margin: 15px 0;
    color: #445;
}

/* TAG */
.tag {
    display: inline-block;
    background: #e8f0ff;
    color: var(--blue);
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* SECTIONS */
.section {
    padding: 90px 0;
}

/* GRID */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* CARD */
.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    transition: 0.3s;
}

    .card:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }

/* DARK SECTION */
.dark {
    background: var(--dark);
    color: white;
}

/* SPLIT */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

    .split img {
        width: 100%;
        border-radius: 14px;
    }

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--line);
}
.footer {
    background: #0b1b2b;
    color: white;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer a {
    color: #cfd8e3;
    text-decoration: none;
    display: inline-block;
    margin: 3px 0;
}

    .footer a:hover {
        color: white;
    }

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #9fb0c5;
}
.form-box {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    margin: auto;
}

.form-head {
    margin-bottom: 30px;
}

    .form-head h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .form-head p {
        color: #556;
    }

/* GRID */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

    .input-group label {
        font-size: 13px;
        margin-bottom: 6px;
        color: #445;
    }

/* INPUTS */
input, textarea, select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 14px;
    transition: 0.2s;
}

    input:focus, textarea:focus, select:focus {
        border-color: var(--blue);
        outline: none;
    }

/* FULL WIDTH */
.full {
    grid-column: span 2;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* BOTTOM */
.form-bottom {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

    .form-bottom span {
        font-size: 13px;
        color: #667;
    }
.logo-wrap {
    display: flex;
    align-items: center;
    gap: -10px;
    text-decoration: none;
}

.logo-text {
    font-weight: 700;
    font-size: 30px;
    background: linear-gradient(90deg,#5381B1, #679FDA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}
/* BURGER */
.burger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    .burger {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 100%;
        display: none;
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--line);
    }

        nav a {
            margin: 10px 0;
        }

        nav.active {
            display: flex;
        }

    /* GRID */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }

    /* TEXT */
    .hero h1 {
        font-size: 30px;
    }

    .section {
        padding: 60px 0;
    }

    /* FORM */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: span 1;
    }

    .form-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
@media (max-width: 768px) {

    .form-grid {
        display: block; /* ключевое */
    }

        .form-grid > * {
            width: 100%;
            margin-bottom: 15px;
        }

    .full {
        grid-column: unset !important;
    }
}
/* ===== UX ПРОКАЧКА ФОРМЫ ===== */

/* плавность */
input, textarea, select {
    transition: all 0.2s ease;
}

/* обычное состояние */
input, textarea, select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
}

    /* фокус (клик) */
    input:focus, textarea:focus, select:focus {
        border-color: #1EA1FB;
        box-shadow: 0 0 0 3px rgba(30, 161, 251, 0.15);
        outline: none;
    }

    /* hover (наведение) */
    input:hover, textarea:hover, select:hover {
        border-color: #525DFB;
    }

/* textarea чуть приятнее */
textarea {
    resize: vertical;
    min-height: 120px;
}

/* кнопка */
.btn {
    transition: all 0.2s ease;
}

    /* hover кнопки */
    .btn:hover {
        transform: translateY(-1px);
    }

    /* нажатие */
    .btn:active {
        transform: translateY(0);
        opacity: 0.9;
    }

    /* disabled (на будущее) */
    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
.map iframe {
    border-radius: 14px;
    filter: grayscale(20%) contrast(1.05) brightness(0.95);
}
/* HERO PRO */

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(30,161,251,0.1);
    color: #1EA1FB;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.hero-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-features {
    margin-top: 25px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #6b7280;
    font-size: 14px;
}

    .hero-features span::before {
        content: "✔ ";
        color: #1EA1FB;
    }

.hero-card {
    padding: 25px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
}

    .hero-card ul {
        margin: 15px 0;
        padding-left: 18px;
    }

    .hero-card li {
        margin-bottom: 8px;
    }

/* MOBILE */
@media (max-width: 768px) {

    .hero-card {
        margin-top: 20px;
    }
}
.hero-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    height: 100%;
}

.hero-image {
    height: 100%;
    min-height: 320px;
}
@media (max-width: 768px) {
    .hero-image {
        margin-top: 20px;
        min-height: 220px;
    }
}
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    border-radius: 16px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

    .slide.active {
        opacity: 1;
    }
@media (max-width: 768px) {
    .hero-slider {
        margin-top: 20px;
        min-height: 220px;
    }
}
/* услуги */
.service-card {
    transition: all 0.25s ease;
    cursor: pointer;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

.icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.service-more {
    display: none;
    margin-top: 10px;
    font-size: 14px;
    color: #6b7280;
}

.service-card.active .service-more {
    display: block;
}
.service-card {
    transition: all 0.25s ease;
    cursor: pointer;
}

    .service-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    }
.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}
.project-slider {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
}

    .project-slider .slide {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 0.5s ease;
        cursor: pointer;
    }

        .project-slider .slide.active {
            opacity: 1;
        }
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

    .lightbox img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 12px;
    }
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 14px;
    transform: scale(0.9);
    animation: zoomIn 0.25s ease forwards;
}

@keyframes zoomIn {
    to {
        transform: scale(1);
    }
}

/* close */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

    .lightbox-close:hover {
        opacity: 1;
    }

/* arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: white;
    cursor: pointer;
    user-select: none;
    opacity: 0.6;
    transition: 0.2s;
}

    .lightbox-nav:hover {
        opacity: 1;
    }

    .lightbox-nav.left {
        left: 25px;
    }

    .lightbox-nav.right {
        right: 25px;
    }

/* mobile */
@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 36px;
    }
}
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    opacity: 0.8;
    background: rgba(0,0,0,0.3);
    padding: 6px 12px;
    border-radius: 20px;
}