@charset "UTF-8";

/*
 * =========================================================
 * Название проекта: [Domain-Parking-FRN]
 * Файл: styles.css
 * Автор: [FRN https://forum.ru.net/]
 * Дата создания: 15.05.2020
 * Последнее обновление: 10.04.2025
 * Версия: V-02
 * 
 * Описание:
 * Основные стили для проекта [Domain-Parking-FRN V-02].
 * Содержит настройки оформления всех стилевых компонентов.
 * 
 * Copyright © 2025 [FRN]. Все права защищены.
 * =========================================================
 */

/* Основные стили */
:root {
    --primary-color: #ff7a00;
    --secondary-color: #4caf50;
    --accent-color: #ffc107;
    --light-color: #ffffff;
    --dark-color: #333333;
    --gray-color: #f5f5f5;
    --text-color: #444444;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

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

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

/* Липкое меню */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
}

.premium-text {
    color: var(--primary-color);
}

.desktop-menu ul {
    display: flex;
}

.desktop-menu li {
    margin-left: 30px;
}

.desktop-menu a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.desktop-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--light-color);
    z-index: 999;
    padding: 80px 30px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    margin-bottom: 30px;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: var(--dark-color);
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-social {
    display: flex;
    justify-content: center;
}

.mobile-social a {
    margin: 0 10px;
    font-size: 24px;
}

/* Главный баннер */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9e9e9 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.animated-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark-color);
    animation: fadeInUp 1s ease;
}

.animated-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-color);
    animation: fadeInUp 1.2s ease;
}

.domain-name {
    display: inline-block;
    margin: 30px 0;
    padding: 15px 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.domain-text {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    animation: fadeInUp 1.4s ease;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.circle-1 {
    width: 300px;
    height: 300px;
    background-color: rgba(255, 122, 0, 0.1);
    top: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    background-color: rgba(76, 175, 80, 0.1);
    bottom: 20%;
    right: 20%;
    animation: float 6s ease-in-out infinite;
}

.circle-3 {
    width: 150px;
    height: 150px;
    background-color: rgba(255, 193, 7, 0.1);
    top: 30%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

/* УТП секция */
.offer-section {
    background-color: var(--gray-color);
}

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

.benefit-item {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.benefit-item:nth-child(2) .benefit-icon {
    background-color: var(--secondary-color);
}

.benefit-item:nth-child(3) .benefit-icon {
    background-color: var(--accent-color);
}

.benefit-item:nth-child(4) .benefit-icon {
    background-color: #9c27b0;
}

.benefit-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.cta-button {
    text-align: center;
    margin-top: 50px;
}

/* Прайс секция */
.price-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

.price-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

.price-box:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.price-tag {
    font-size: 24px;
    margin-bottom: 30px;
}

.currency {
    font-size: 30px;
    font-weight: 600;
    vertical-align: top;
    color: var(--primary-color);
}

.amount {
    font-size: 60px;
    font-weight: 700;
    color: var(--dark-color);
}

.price-features {
    margin-bottom: 30px;
}

.price-features ul {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.price-features li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.price-features i {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--secondary-color);
}

.price-button {
    margin-top: 30px;
}

/* Контакты секция */
.contacts-section {
    background-color: var(--light-color);
}

.contacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.contact-social a {
    width: 50px;
    height: 50px;
    background-color: var(--gray-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.contact-social a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-5px);
}

.contact-cta {
    background-color: var(--gray-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.contact-cta h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-cta p {
    margin-bottom: 30px;
}

.contact-form-container {
    margin-top: 40px;
    text-align: left;
}

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

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.1);
}

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

.checkbox {
    display: flex;
    align-items: flex-start;
}

.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox label {
    font-size: 14px;
}

/* Карта */
.map-section {
    height: 400px;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Подвал */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 30px;
}

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

.footer-logo a {
    color: var(--light-color);
    font-size: 24px;
    font-weight: 700;
}

.footer-logo p {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--light-color);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--light-color);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Кнопка скролла вверх */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(50px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 122, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 122, 0, 0);
    }
}

/* Медиа запросы */
@media (max-width: 992px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        margin-top: 20px;
    }

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

    .domain-text {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .hero-banner {
        height: auto;
        padding: 120px 0 80px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .animated-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .price-tag .amount {
        font-size: 48px;
    }
}

@media (max-width: 576px) {
    .animated-title {
        font-size: 28px;
    }

    .domain-text {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .price-box {
        padding: 30px 20px;
    }

    .price-tag .amount {
        font-size: 40px;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

/* Улучшения для мобильных устройств */
@media (max-width: 768px) {
    /* Улучшение видимости модального окна на мобильных */
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 25px 15px;
        margin: 0 10px;
    }
    
    /* Улучшение видимости кнопки закрытия модального окна */
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 32px;
        padding: 5px;
    }
    
    /* Улучшение видимости мобильного меню */
    .mobile-menu {
        width: 85%;
        padding: 70px 20px 30px;
    }
    
    /* Увеличение области нажатия для мобильного меню */
    .mobile-menu-toggle {
        padding: 10px;
        margin: -10px;
    }
    
    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        margin: 2px 0;
    }
    
    /* Улучшение видимости кнопки скролла вверх */
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Улучшение видимости формы */
    input, select, textarea {
        padding: 15px;
        font-size: 16px; /* Предотвращает масштабирование на iOS */
    }
    
    /* Улучшение видимости чекбокса */
    .checkbox input {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        margin-top: 3px;
    }
}

/* Исправление для iOS Safari */
@supports (-webkit-touch-callout: none) {
    /* Предотвращение проблем с фиксированным позиционированием на iOS */
    .sticky-header, .mobile-menu, .modal, .scroll-top {
        -webkit-transform: translateZ(0);
    }
    
    /* Предотвращение проблем с прокруткой на iOS */
    body.modal-open {
        position: fixed;
        width: 100%;
    }
}
