/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== ШАПКА ========== */
.header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    animation: electricShock 1.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) 0.5s;
}

.logo-icon i {
    color: white;
    font-size: 22px;
    animation: boltFlash 1.8s ease-in-out 0.5s;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #ff7313;
    line-height: 1.2;
}

.logo-city {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.header-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

.phone-icon {
    display: none;
}

/* ========== ГЛАВНЫЙ БАННЕР ========== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 550px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #333;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #333;
}

.feature i {
    color: #FF9800;
    font-size: 18px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    border: none;
    cursor: pointer;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

/* ========== ОБЩИЕ СЕКЦИИ ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 25px auto 0;
}

/* ========== ГАЛЕРЕЯ ========== */
.gallery-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-wrapper {
    overflow: hidden;
    border-radius: 15px;
    background: white;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    transition: transform 0.5s ease;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.gallery-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: none;
    color: #FF9800;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-arrow:hover {
    background: #FF9800;
    color: white;
    transform: scale(1.1);
}

.gallery-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.gallery-arrow:disabled:hover {
    background: white;
    color: #FF9800;
}

.gallery-dots {
    display: flex;
    gap: 12px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-dot.active {
    background: #FF9800;
    transform: scale(1.2);
}

/* ========== УСЛУГИ ========== */
.services-section {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #FF9800;
}

.service-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    color: white;
    font-size: 28px;
}

.service-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.service-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.5;
}

/* ========== ФОРМА ========== */
.form-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-content {
    padding: 50px;
}

.form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.form-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-note {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-top: 25px;
    line-height: 1.5;
}

.form-info {
    padding: 50px;
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 24px;
}

.info-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-content a {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.info-content p {
    opacity: 0.9;
    font-size: 15px;
}

/* ========== ФУТЕР ========== */
.footer {
    background: #333;
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo .logo {
    margin-bottom: 20px;
}

.footer-description {
    font-size: 15px;
    color: #aaa;
    line-height: 1.6;
    max-width: 300px;
}

.footer-nav h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
}

.footer-link {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FF9800;
}

.footer-link i {
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #444;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* ========== МОДАЛЬНОЕ ОКНО УСПЕХА ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 60px 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    animation: modalAppear 0.4s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.modal-icon i {
    color: white;
    font-size: 36px;
}

.modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.modal-text {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
}

.modal-btn {
    background: linear-gradient(135deg, #FF9800, #FF5722);
    color: white;
    border: none;
    padding: 15px 50px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

/* ========== АДАПТИВНОСТЬ ========== */

/* Планшеты */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-image img {
        height: 400px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-container {
        grid-template-columns: 1fr;
    }

    .form-info {
        padding: 40px;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .phone-text {
        display: none;
    }

    .phone-icon {
        display: block;
    }

    .header-phone {
        padding: 12px;
        width: 50px;
        height: 50px;
        justify-content: center;
    }

    .header-phone i {
        margin: 0;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-button {
        padding: 16px 35px;
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    .gallery-section {
        padding: 80px 0;
    }

    .gallery-wrapper {
        padding: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-item {
        height: 250px;
    }

    .services-section {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 25px;
    }

    .form-section {
        padding: 80px 0;
    }

    .form-content {
        padding: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 300px;
    }

    .gallery-controls {
        flex-direction: column;
        gap: 20px;
    }

    .gallery-dots {
        order: -1;
    }
}

@keyframes electricShock {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
        filter: brightness(1);
    }

    10% {
        transform: scale(1.2) rotate(-2deg);
        box-shadow: 0 0 25px #ffeb3b, 0 0 40px #ff9800;
        filter: brightness(1.5);
    }

    20% {
        transform: scale(1.1) rotate(2deg);
        box-shadow: 0 0 30px #ff9800, 0 0 50px #ff5722;
        filter: brightness(2);
    }

    30% {
        transform: scale(1.3) rotate(-3deg);
        box-shadow: 0 0 35px #ffeb3b, 0 0 60px #ff9800;
        filter: brightness(2.5);
    }

    40% {
        transform: scale(1.15) rotate(1deg);
        box-shadow: 0 0 40px #ff5722, 0 0 70px #ff9800;
        filter: brightness(2);
    }

    50% {
        transform: scale(1.4) rotate(3deg);
        box-shadow: 0 0 45px #ffeb3b, 0 0 80px #ff5722;
        filter: brightness(3);
    }

    60% {
        transform: scale(1.1) rotate(-1deg);
        box-shadow: 0 0 35px #ff9800, 0 0 60px #ffeb3b;
        filter: brightness(2);
    }

    70% {
        transform: scale(1.25) rotate(2deg);
        box-shadow: 0 0 25px #ff5722, 0 0 45px #ff9800;
        filter: brightness(2.5);
    }

    80% {
        transform: scale(1.05) rotate(-1deg);
        box-shadow: 0 0 15px #ffeb3b, 0 0 30px #ff9800;
        filter: brightness(1.5);
    }

    90% {
        transform: scale(1.15) rotate(1deg);
        box-shadow: 0 0 10px #ff9800, 0 0 20px #ff5722;
        filter: brightness(1.8);
    }

    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
        filter: brightness(1);
    }
}

@keyframes boltFlash {

    0%,
    100% {
        color: white;
        text-shadow: 0 0 5px #fff;
    }

    10% {
        color: #ffeb3b;
        text-shadow: 0 0 20px #ffeb3b, 0 0 40px #ff9800;
    }

    20% {
        color: #ff9800;
        text-shadow: 0 0 30px #ff9800, 0 0 60px #ff5722;
    }

    30% {
        color: #ffeb3b;
        text-shadow: 0 0 40px #ffeb3b, 0 0 80px #ff9800;
    }

    40% {
        color: #ff5722;
        text-shadow: 0 0 50px #ff5722, 0 0 100px #ff9800;
    }

    50% {
        color: #ffeb3b;
        text-shadow: 0 0 60px #ffeb3b, 0 0 120px #ff5722;
    }

    60% {
        color: #ff9800;
        text-shadow: 0 0 40px #ff9800, 0 0 80px #ffeb3b;
    }

    70% {
        color: #ff5722;
        text-shadow: 0 0 30px #ff5722, 0 0 60px #ff9800;
    }

    80% {
        color: #ffeb3b;
        text-shadow: 0 0 20px #ffeb3b, 0 0 40px #ff5722;
    }

    90% {
        color: #ff9800;
        text-shadow: 0 0 15px #ff9800, 0 0 30px #ffeb3b;
    }
}

@keyframes sparks {
    0% {
        opacity: 0;
        transform: rotate(0deg);
    }

    25% {
        opacity: 1;
        transform: rotate(90deg);
    }

    50% {
        opacity: 0.8;
        transform: rotate(180deg);
    }

    75% {
        opacity: 1;
        transform: rotate(270deg);
    }

    100% {
        opacity: 0;
        transform: rotate(360deg);
    }
}

.logo-icon.animate {
    animation: electricShock 1.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    position: relative;
    overflow: visible;
}

.logo-icon.animate::before,
.logo-icon.animate::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    border: 2px solid transparent;
    top: 0;
    left: 0;
    pointer-events: none;
}

.logo-icon.animate::before {
    animation: sparks 0.9s linear infinite;
    border-top-color: #ffeb3b;
    border-right-color: #ff9800;
}

.logo-icon.animate::after {
    animation: sparks 0.9s linear infinite reverse;
    border-bottom-color: #ff5722;
    border-left-color: #ffeb3b;
}

.logo-icon.animate i {
    animation: boltFlash 1.8s ease-in-out;
    display: block;
}

.dg-signature {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.dg-signature-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dg-signature-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: #3b82f6;
}

.dg-logo-circle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #9d1dd8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.dg-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.dg-made-by {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dg-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* ========== КНОПКА КОНСТРУКТОРА ========== */
.header-constructor {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    margin-right: 10px;
}

.header-constructor:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.constructor-icon-mobile {
    display: none;
}

/* ========== МОБИЛЬНАЯ АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }

    .header-inner {
        justify-content: space-between;
    }

    .phone-text {
        display: none;
    }

    .phone-icon {
        display: inline-block;
    }

    .constructor-text {
        display: none;
    }

    .constructor-icon-mobile {
        display: inline-block;
    }

    .header-phone,
    .header-constructor {
        padding: 12px;
        width: 50px;
        height: 50px;
        justify-content: center;
    }

    .header-phone i,
    .header-constructor i {
        margin: 0;
        font-size: 20px;
    }

    .header-phone>*:not(.phone-icon),
    .header-constructor>*:not(.constructor-icon-mobile) {
        display: none;
    }
}

@media (max-width: 480px) {

    .header-phone,
    .header-constructor {
        width: 46px;
        height: 46px;
        padding: 10px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-title {
        font-size: 18px;
    }

    .logo-city {
        font-size: 12px;
    }
}

/* Для планшетов */
@media (max-width: 992px) and (min-width: 769px) {
    .constructor-text {
        font-size: 14px;
    }

    .header-constructor {
        padding: 10px 18px;
    }
}