/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #00B3B3;
    --accent-color: #FF6F61;
    --text-color: #2C2C2C;
    --card-bg: #F8F8F2;
    --hover-color: #B59FCC;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-bg) 0%, #008080 100%);
    min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(255,255,255,0.05);
}

/* ===== HEADER STYLES ===== */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-bg);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    fill: currentColor;
}

.desktop-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.desktop-nav a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* ===== DESKTOP & MOBILE NAVIGATION ===== */
@media (min-width: 769px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 0;
    }
    
    .desktop-nav {
        display: flex;
        list-style: none;
        gap: 2rem;
    }
    
    .mobile-nav {
        display: none;
    }
    
    .mobile-menu-button {
        display: none;
    }
    
    .mobile-menu-checkbox {
        display: none;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

.mobile-nav {
    display: none;
}

.mobile-menu-button {
    display: none;
}

/* Общие стили навигации удалены - используются специфичные для каждого типа */

/* ===== MOBILE MENU CSS-ONLY ===== */
.mobile-menu-checkbox {
    display: none;
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    padding: 5px;
}

.mobile-menu-button:hover {
    background: rgba(0,179,179,0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--primary-bg);
    margin: 3px 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #008080 50%, var(--accent-color) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/1ZRAqr.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,111,97,0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255,111,97,0.4);
    background: var(--hover-color);
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* ===== CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-image-container {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-image-container .card-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

.card:hover .service-image {
    transform: scale(1.1);
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-bg), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--accent-color);
    transform: rotate(360deg);
}

/* ===== FORMS ===== */
.form-container {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin: 3rem 0;
    position: relative;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-bg), var(--accent-color), var(--hover-color));
    border-radius: 22px;
    z-index: -1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-bg);
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(0,179,179,0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44,44,44,0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1rem;
    z-index: 2000;
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-text {
    flex: 1;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn:hover {
    background: var(--hover-color);
}

/* ===== ADVANTAGES SECTION ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid rgba(0,179,179,0.1);
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-bg), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: var(--primary-bg);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.gradient-1 {
    background: linear-gradient(135deg, #00B3B3, #FF6F61);
}

.gradient-2 {
    background: linear-gradient(135deg, #FF6F61, #B59FCC);
}

.gradient-3 {
    background: linear-gradient(135deg, #B59FCC, #00B3B3);
}

.gradient-4 {
    background: linear-gradient(135deg, #00B3B3 0%, #FF6F61 50%, #B59FCC 100%);
}

.advantage-number {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,179,179,0.1);
    color: var(--primary-bg);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.advantage-card:hover .advantage-number {
    opacity: 1;
    transform: translateY(0);
}

.advantage-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    transition: var(--transition);
}

.advantage-card:hover h3 {
    color: var(--primary-bg);
}

.advantage-card p {
    color: rgba(44,44,44,0.8);
    line-height: 1.6;
    transition: var(--transition);
}

.advantage-card:hover p {
    color: var(--text-color);
}

/* ===== SUCCESS CHECKMARK ===== */
.success-checkmark {
    display: inline-block;
    width: 100px;
    height: 100px;
    position: relative;
    z-index: 10;
}

.checkmark-svg {
    width: 100%;
    height: 100%;
    animation: checkmarkBounce 0.8s ease-out;
}

.checkmark-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmarkDraw 0.8s ease-out 0.3s forwards;
}

@keyframes checkmarkBounce {
    0% {
        opacity: 0;
        transform: scale(0) rotate(180deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes checkmarkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
        margin-right: 8px;
    }
    
    .mobile-menu-button {
        display: flex;
    }
    
    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-radius: 0 0 15px 15px;
        z-index: 1001;
        padding: 1rem 0;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    /* Показываем меню когда checkbox отмечен */
    .mobile-menu-checkbox:checked ~ .mobile-nav {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Анимация hamburger линий */
    .mobile-menu-checkbox:checked ~ .mobile-menu-button .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-checkbox:checked ~ .mobile-menu-button .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-checkbox:checked ~ .mobile-menu-button .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .mobile-nav li {
        border-bottom: 1px solid rgba(0,0,0,0.1);
        margin: 0;
    }
    
    .mobile-nav li:last-child {
        border-bottom: none;
    }
    
    .mobile-nav a {
        display: block;
        padding: 0.8rem 1rem;
        color: var(--text-color);
        font-weight: 500;
        transition: var(--transition);
    }
    
    .mobile-nav a:hover {
        background: rgba(0,179,179,0.1);
        color: var(--primary-bg);
    }
    
    /* Скрываем обычное меню на мобильных */
    .nav ul:not(.mobile-nav) {
        display: none;
    }
    
    .hero {
        padding: 120px 0 50px;
        min-height: 80vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        padding-top: 2rem;
    }
    
    .hero h1 {
        font-size: clamp(1.8rem, 7vw, 3rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 0.3rem 0;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 100px 0 40px;
        min-height: 75vh;
    }
    
    .hero-content {
        padding-top: 1rem;
    }
    
    .hero h1 {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: clamp(0.9rem, 4.5vw, 1.1rem);
        margin-bottom: 1.2rem;
        padding: 0 0.5rem;
    }
    
    .hero .btn {
        margin: 0.5rem 0.2rem;
        width: calc(100% - 0.4rem);
        max-width: none;
        font-size: 0.95rem;
        padding: 14px 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .success-checkmark {
        width: 70px;
        height: 70px;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .service-image-container {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .form-container {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantage-card {
        padding: 2rem 1.5rem;
    }
    
    .advantage-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-color);
}

.bg-white {
    background: var(--white);
}

.bg-accent {
    background: var(--accent-color);
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
} 