/* --- ПЕРЕМЕННЫЕ И БАЗА --- */
:root {
    --color-pink: #FF9F9F;
    --color-blue: #88D4EA;
    --color-yellow: #FFD56B;
    --color-mint: #A0E7E5;
    --text-dark: #4A4A4A;
    --text-light: #777777;
    --white: #ffffff;
    --bg-cloud: #F7FBFD;
}

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

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

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; }
h2 {
    font-size: 2.5rem; text-align: center; margin-bottom: 1rem; color: var(--text-dark);
}

.section-subtitle {
    text-align: center; color: var(--text-light); margin-bottom: 3rem;
    font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: 20px; }

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

/* --- КНОПКИ --- */
.btn {
    display: inline-block; padding: 15px 35px; border-radius: 50px;
    font-weight: 700; font-size: 1rem; text-transform: uppercase;
    letter-spacing: 0.5px; cursor: pointer; border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.btn-pink { background-color: var(--color-pink); color: white; }
.btn-blue { background-color: var(--color-blue); color: white; }
.btn-yellow { background-color: var(--color-yellow); color: var(--text-dark); }
.w-full { width: 100%; }
.mt-20 { margin-top: 20px; }

/* --- HEADER --- */
.header {
    background: var(--white); padding: 15px 0; position: fixed;
    width: 100%; top: 0; z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-size: 1.8rem; font-weight: 800; color: var(--color-pink);
    display: flex; align-items: center; gap: 10px;
}
.logo i { color: var(--color-blue); }

.nav-menu { display: flex; gap: 30px; }
.nav-menu a { color: var(--text-dark); font-weight: 700; font-size: 1rem; }
.nav-menu a:hover { color: var(--color-pink); }

.header-right { display: flex; align-items: center; gap: 20px; }

.hamburger {
    display: none; flex-direction: column; justify-content: space-between;
    width: 30px; height: 22px; background: none; border: none; cursor: pointer; padding: 0;
}
.hamburger span {
    display: block; width: 100%; height: 3px; background-color: var(--text-dark); border-radius: 3px;
}

/* --- MOBILE MENU --- */
.mobile-menu {
    position: fixed; top: 0; right: 0; width: 100%; height: 100%;
    background-color: var(--white); z-index: 2000; padding: 20px;
    transform: translateX(100%); transition: transform 0.3s ease-in-out;
    display: flex; flex-direction: column;
}
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 20px; border-bottom: 1px solid #eee; margin-bottom: 30px;
}
.close-menu-btn {
    font-size: 2rem; color: var(--text-dark); border: none; background: none; cursor: pointer;
}
.mobile-nav { display: flex; flex-direction: column; gap: 20px; }
.mobile-link {
    font-size: 1.2rem; font-weight: 700; color: var(--text-dark);
}

/* --- HERO --- */
.hero {
    margin-top: 78px; background-color: #F0F9FC; min-height: 600px;
    display: flex; align-items: center; position: relative; overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; z-index: 0; opacity: 0.6; }
.blob-1 { width: 300px; height: 300px; background: #FFE5E5; top: -50px; left: -50px; }
.blob-2 { width: 200px; height: 200px; background: #E0F7FA; bottom: 50px; right: 10%; }

.hero-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
    align-items: center; position: relative; z-index: 1;
}
.hero-text h1 { font-size: 3.5rem; margin-bottom: 20px; color: var(--text-dark); }
.hero-text h1 span { color: var(--color-pink); }
.hero-text p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 30px; }

.hero-img-box { position: relative; }
.hero-img-box img {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    border: 10px solid var(--white);
    box-shadow: 0 20px 40px rgba(136, 212, 234, 0.2);
}

.wave-bottom {
    position: absolute; bottom: 0; left: 0; width: 100%;
    overflow: hidden; line-height: 0; transform: rotate(180deg);
}
.wave-bottom svg { position: relative; display: block; width: calc(100% + 1.3px); height: 60px; }
.wave-bottom .shape-fill { fill: #FFFFFF; }

.section-padding { padding: 80px 0; position: relative; }

/* --- УСЛУГИ --- */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.service-card {
    background: var(--white); padding: 40px 30px; border-radius: 30px;
    text-align: center; transition: 0.3s; border: 2px solid transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.service-card:hover { border-color: var(--color-blue); transform: translateY(-10px); }
.icon-box {
    width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 2rem; color: white;
}
.bg-pink { background-color: var(--color-pink); }
.bg-blue { background-color: var(--color-blue); }
.bg-yellow { background-color: var(--color-yellow); }
.bg-mint { background-color: var(--color-mint); }

/* --- ИНФРАСТРУКТУРА --- */
.infra-section { background-color: #FFF9F0; }
.infra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.infra-item { position: relative; overflow: hidden; border-radius: 20px; height: 250px; }
.infra-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.infra-item:hover img { transform: scale(1.1); }
.infra-item:nth-child(1) { grid-column: span 2; }
.infra-item:nth-child(4) { grid-column: span 2; }

/* --- ПРЕИМУЩЕСТВА --- */
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.adv-item { display: flex; align-items: flex-start; gap: 20px; }
.adv-icon {
    min-width: 60px; height: 60px; background: #E8F7FC; color: var(--color-blue);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

/* --- ДИПЛОМЫ --- */
.diplomas-section { background-color: #F7FBFD; }
.diploma-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.diploma-item {
    background: white; padding: 10px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); width: 200px;
}

/* --- ТАРИФЫ --- */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; align-items: center;
}
.price-card {
    background: var(--white); border-radius: 30px; padding: 40px;
    text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative; border: 2px solid #f0f0f0;
}
.price-card.featured { transform: scale(1.05); border-color: var(--color-pink); z-index: 2; }
.price-title { font-size: 1.5rem; margin-bottom: 10px; }
.price-amount { font-size: 2.5rem; font-weight: 800; color: var(--color-pink); margin-bottom: 20px; }
.price-amount span { font-size: 1rem; color: var(--text-light); }
.price-features li { margin-bottom: 10px; color: var(--text-light); }
.price-features li i { color: var(--color-mint); margin-right: 8px; }
.badge {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--color-yellow); padding: 5px 15px; border-radius: 20px; font-weight: bold;
}

/* --- CONTACT --- */
.contact-section { position: relative; }
.contact-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(136, 212, 234, 0.9);
}
.contact-wrapper {
    position: relative; z-index: 2; background: var(--white); max-width: 600px;
    margin: 0 auto; padding: 50px; border-radius: 40px; text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.form-group { margin-bottom: 20px; }
.form-control {
    width: 100%; padding: 15px 20px; border: 2px solid #eee; border-radius: 50px;
    font-family: 'Nunito', sans-serif; font-size: 1rem; outline: none; transition: 0.3s;
}
.form-control:focus { border-color: var(--color-pink); }
textarea.form-control { border-radius: 20px; height: 120px; resize: none; }

/* --- FOOTER --- */
footer { background-color: var(--text-dark); color: white; padding: 60px 0 20px; text-align: center; }
.footer-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
    margin-bottom: 40px; text-align: left;
}
.footer-col h4 { color: var(--color-yellow); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #ccc; }
.footer-col ul li a:hover { color: white; }
.social-icons a {
    display: inline-block; width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    border-radius: 50%; text-align: center; line-height: 40px; color: white; margin-right: 10px;
}
.social-icons a:hover { background: var(--color-pink); }

/* --- MODAL --- */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5);
    align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background-color: var(--white); margin: auto; padding: 40px;
    border-radius: 30px; width: 90%; max-width: 500px; position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { top: -50px; opacity: 0; } to { top: 0; opacity: 1; } }
.close-btn {
    color: #aaa; float: right; font-size: 28px; font-weight: bold;
    position: absolute; top: 15px; right: 25px; cursor: pointer; transition: 0.3s;
}
.close-btn:hover { color: var(--color-pink); }
.modal-title { font-size: 2rem; margin-bottom: 20px; }
.blue-border { border-color: var(--color-blue); }
.textarea-h { height: 100px; }

/* --- MOBILE ADAPTIVE --- */
@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
}

@media (max-width: 768px) {
    /* Header */
    .desktop-only { display: none; }
    .hamburger { display: flex; }
    
    /* Hero */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 30px; padding: 50px 20px;}
    .hero-text h1 {font-size: 2.5rem;}
    .btn {font-size: 12px;}
    .service-card {padding: 20px;}
    .hero-img-box { margin-top: 30px; max-width: 300px; margin: 0 auto; }
    .footer-col ul li {margin-bottom: 0px;}
    .footer-col h4 {margin-bottom: 10px;}
    
    /* Infra & Footer */
    .infra-grid, .footer-grid { grid-template-columns: 1fr; }
    .infra-item { grid-column: span 1 !important; height: 200px; }
    
    /* Sections */
    .section-padding { padding: 50px 0; }
    .contact-wrapper { padding: 30px 20px; }
    
    /* Diplomas */
    .diploma-item { width: 45%; }
}

@media (max-width: 480px) {
    .diploma-item { width: 100%; }
}