/* ---- Базовые стили ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #1e293b;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Кнопки ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    transition: all .25s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: #1a6b8a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 107, 138, .25);
}

.btn-primary:hover {
    background: #0f5470;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 107, 138, .35);
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a6b8a;
    color: #1a6b8a;
}

.btn-outline:hover {
    background: #1a6b8a10;
    border-color: #0f5470;
    transform: translateY(-2px);
}

.btn-light {
    background: rgba(255, 255, 255, .9);
    color: #0a3d52;
    border: 2px solid transparent;
}

.btn-light:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}

/* ---- Шапка ---- */
header {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .02);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #ddeef5;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    color: #0b4f6c;
}

.logo i {
    font-size: 2rem;
    color: #1a6b8a;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #2c3e4a;
    transition: color .2s;
}

.nav-links a:hover {
    color: #1a6b8a;
}

/* ---- Слайдер ---- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 420px;
    overflow: hidden;
    background: #9fcfe3;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .6s ease;
}

.slider-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}

.slider-overlay.desktop-only {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 10%;
    z-index: 5;
    pointer-events: none;
}

.slider-overlay.desktop-only .content {
    max-width: 680px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.slider-overlay.desktop-only h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.slider-overlay.desktop-only h1 span {
    border-bottom: 4px solid #8fc8e0;
}

.slider-overlay.desktop-only p {
    font-size: 1.2rem;
    opacity: .95;
    margin-bottom: 32px;
    max-width: 90%;
    font-weight: 400;
}

.slider-overlay.desktop-only .btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mobile-only {
    display: none;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
    pointer-events: none;
}

.slider-controls button,
.slider-controls .dot {
    pointer-events: auto;
}

.slider-controls button {
    background: rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
    width: 44px;
    height: 44px;
    border-radius: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, .5);
}

.dots {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .3s;
}

.dot.active {
    background: #fff;
    width: 28px;
}

.dot:hover {
    background: rgba(255, 255, 255, .8);
}

/* ---- Секции ---- */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0a3d52;
}

.section-sub {
    text-align: center;
    color: #4d7386;
    max-width: 680px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
}

/* Индивидуальные решения */
.custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.custom-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 28px;
    text-align: center;
    transition: all .25s;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .05);
    border: 1px solid #e3eff5;
}

.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 36px -12px rgba(26, 107, 138, .12);
    border-color: #b0d4e3;
}

.custom-icon {
    font-size: 2.8rem;
    color: #1a6b8a;
    margin-bottom: 20px;
}

.custom-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.custom-card p {
    color: #475569;
}

/* Галерея работ */
.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.work-item {
    background: #f5fafd;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #d6e9f2;
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(26, 107, 138, .15);
}

.work-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #e2eff6;
}

.work-item .work-label {
    padding: 16px 20px;
    text-align: center;
    font-weight: 500;
    color: #0a3d52;
    border-top: 1px solid #d6e9f2;
    background: #fff;
}

/* Дизайн-галерея */
.design-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.design-item {
    background: #f5fafd;
    border-radius: 28px;
    padding: 20px;
    text-align: center;
    border: 1px solid #d6e9f2;
}

.design-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 12px;
    background: #e2eff6;
}

.design-item h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.design-item p {
    font-size: .95rem;
    color: #4d7386;
}

/* Этапы работы */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.step-item {
    background: #f5fafd;
    border-radius: 32px;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid #d6e9f2;
}

.step-num {
    background: #1a6b8a;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.step-item h4 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Характеристики */
.specs-wrapper {
    background: #f5fafd;
    border-radius: 48px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    border: 1px solid #d6e9f2;
}

.specs-list {
    flex: 1;
    min-width: 240px;
}

.specs-list ul {
    list-style: none;
}

.specs-list li {
    margin-bottom: 20px;
    display: flex;
    gap: 14px;
    align-items: baseline;
    font-size: 1.05rem;
}

.specs-list i {
    color: #1a6b8a;
    width: 24px;
    font-size: 1.2rem;
}

.specs-img {
    flex: 1;
    min-width: 240px;
    background: #e2eff6;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.specs-img img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
}

/* Цена */
.price-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 48px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .08);
    padding: 40px;
    text-align: center;
    border: 1px solid #d6e9f2;
}

.price-value {
    font-size: 3rem;
    font-weight: 800;
    color: #0b4f6c;
    margin: 16px 0 8px;
}

.price-desc {
    color: #5f6c7a;
    margin-bottom: 24px;
}

.price-features {
    list-style: none;
    text-align: left;
    margin: 24px 0;
    padding: 0 16px;
}

.price-features li {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-features i {
    color: #1a6b8a;
    width: 22px;
}

/* Форма */
.form-box {
    background: #f5fafd;
    border-radius: 48px;
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .04);
    border: 1px solid #d6e9f2;
}

.form-group {
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 60px;
    border: 1px solid #c5dce7;
    font-family: inherit;
    font-size: 1rem;
    transition: .2s;
    background: #fff;
}

.form-group textarea {
    border-radius: 28px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a6b8a;
    box-shadow: 0 0 0 3px rgba(26, 107, 138, .2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ---- Футер (гармонирует с #9fcfe3) ---- */
footer {
    background: #2c7a9e;
    color: #f0f9ff;
    padding: 48px 0 24px;
    margin-top: 40px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
    color: #d4eaf3;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color .2s;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-col i {
    margin-right: 8px;
    width: 20px;
    color: #b5d9e8;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 28px;
    font-size: .85rem;
    color: #cce3ed;
}

/* ---- Лайтбокс ---- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex !important;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close-btn:hover {
    color: #ccc;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 48px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s;
    z-index: 1001;
    user-select: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev,
.lightbox-next,
.close-btn {
    pointer-events: auto;
}

/* ---- Модальное окно уведомлений ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeInOverlay 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-box {
    background: #fff;
    border-radius: 28px;
    padding: 40px 30px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 10px;
}

.modal-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #0a3d52;
}

.modal-box p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 25px;
}

.modal-box .btn {
    min-width: 120px;
}

/* ---- Всплывающее уведомление (старое, оставлено для совместимости) ---- */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a6b8a;
    color: #fff;
    padding: 12px 28px;
    border-radius: 60px;
    font-weight: 500;
    z-index: 200;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.toast-msg.show {
    opacity: 1;
}

/* ---- Адаптивность ---- */

/* Планшеты и небольшие ноутбуки */
@media (max-width: 900px) {
    .hero-slider {
        height: 65vh;
        min-height: 380px;
    }

    .slider-overlay.desktop-only {
        padding: 0 6%;
        justify-content: center;
        text-align: center;
    }

    .slider-overlay.desktop-only .content {
        max-width: 100%;
    }

    .slider-overlay.desktop-only h1 {
        font-size: 2.2rem;
    }

    .slider-overlay.desktop-only p {
        font-size: 1rem;
        max-width: 100%;
    }

    .slider-overlay.desktop-only .btns {
        justify-content: center;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .design-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .specs-wrapper {
        flex-direction: column;
    }

    .header-flex {
        flex-direction: column;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .slider-controls {
        bottom: 20px;
        gap: 14px;
    }

    .slider-controls button {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* Телефоны (ширина до 550px) */
@media (max-width: 550px) {
    .container {
        padding: 0 12px;
    }

    .slider-overlay.desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
        position: relative !important;
        background: #9fcfe3;
        padding: 20px 16px 30px;
        text-align: center;
        color: #fff;
        margin-top: -4px;
    }

    .mobile-only .content {
        max-width: 100%;
        background: transparent;
        padding: 0;
        backdrop-filter: none;
        border-radius: 0;
        text-shadow: none;
    }

    .mobile-only h1 {
        font-size: 1.6rem;
        margin-bottom: 10px;
        color: #fff;
    }

    .mobile-only h1 span {
        border-bottom: 3px solid #8fc8e0;
    }

    .mobile-only p {
        font-size: 0.95rem;
        margin-bottom: 16px;
        opacity: 0.9;
        color: #d4eaf3;
    }

    .mobile-only .btns {
        display: flex;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .mobile-only .btns .btn {
        font-size: 0.85rem;
        padding: 8px 18px;
    }

    .hero-slider {
        height: 50vh;
        min-height: 260px;
    }

    .slider-controls {
        bottom: 10px;
        gap: 8px;
    }

    .slider-controls button {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 16px;
    }

    .price-value {
        font-size: 2rem;
        word-break: break-word;
        hyphens: auto;
    }

    .price-card {
        padding: 20px;
    }

    .price-features li {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-sub {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .design-gallery {
        grid-template-columns: 1fr;
    }

    .specs-wrapper {
        padding: 24px;
    }

    .modal-box {
        padding: 30px 20px;
    }

    .modal-box h2 {
        font-size: 1.4rem;
    }

    .modal-box p {
        font-size: 1rem;
    }

    .modal-icon {
        font-size: 48px;
    }
}

/* Очень маленькие экраны (iPhone SE и т.п., до 400px) */
@media (max-width: 400px) {
    .hero-slider {
        height: 40vh;
        min-height: 200px;
    }

    .mobile-only {
        padding: 16px 12px 24px;
    }

    .mobile-only h1 {
        font-size: 1.3rem;
    }

    .mobile-only p {
        font-size: 0.8rem;
    }

    .mobile-only .btns .btn {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .price-value {
        font-size: 1.6rem;
        word-break: break-word;
        hyphens: auto;
    }

    .price-card {
        padding: 16px;
    }

    .price-features li {
        font-size: 0.8rem;
    }

    .modal-box {
        padding: 24px 16px;
    }

    .modal-box h2 {
        font-size: 1.2rem;
    }

    .modal-box p {
        font-size: 0.9rem;
    }

    .modal-icon {
        font-size: 40px;
    }

    .modal-close {
        font-size: 24px;
        top: 10px;
        right: 14px;
    }
}