/* === ОСНОВНЫЕ СТИЛИ === */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc05;
    --dark-color: #202124;
    --light-color: #f8f9fa;
    --gray-color: #5f6368;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

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

/* === ТИПОГРАФИЯ === */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray-color);
}

/* === КНОПКИ === */
.btn-primary, .btn-secondary, .btn-counter {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #0d62d9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    width: 100%;
}

.btn-secondary:hover {
    background: #2d8c47;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-counter {
    background: var(--light-color);
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

/* === НАВИГАЦИЯ === */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.phone a {
    color: var(--dark-color);
    text-decoration: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* === ГЕРОЙ СЕКЦИЯ === */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(rgba(26, 115, 232, 0.9), rgba(26, 115, 232, 0.7)), url('/static/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.8rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.calculator-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.calculator-card h2 {
    color: var(--dark-color);
    text-align: left;
    margin-bottom: 1.5rem;
}

.calculator-card h2::after {
    left: 0;
    transform: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
}

.range-slider {
    margin-top: 10px;
}

.range-slider input {
    width: 100%;
}

.result {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.cost-breakdown {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.note {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 0;
}

.cta-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.cta-form h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cta-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.privacy {
    font-size: 0.8rem;
    color: var(--gray-color);
    text-align: center;
    margin-top: 1rem;
}

/* === УСЛУГИ === */
.services {
    padding: 80px 0;
    background: var(--light-color);
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.service-card li {
    padding: 5px 0;
    color: var(--gray-color);
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* === ПРЕИМУЩЕСТВА === */
.advantages {
    padding: 80px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.advantage {
    padding: 2rem;
}

.advantage i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.advantage h3 {
    margin-bottom: 0.5rem;
}

/* === О КОМПАНИИ === */
.about {
    padding: 80px 0;
    background: var(--light-color);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.label {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* === КОНТАКТЫ === */
.contact {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

/* === ФУТЕР === */
footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #bbb;
}

.footer-bottom a {
    color: #bbb;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .nav-links, .phone {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 100px 0 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* === ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ НОВОГО ДИЗАЙНА === */

/* Правый верхний угол для калькулятора */
@media (min-width: 769px) {
    .hero-content {
        position: relative;
        padding-right: 360px; /* Место для калькулятора */
    }
}

/* Улучшенные карточки услуг */
.service-card-modern {
    background: white;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #34a853);
}

.service-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Современные кнопки */
.btn-modern {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

/* Градиенты */
.gradient-primary {
    background: linear-gradient(135deg, #1a73e8, #0d62d9);
}

.gradient-secondary {
    background: linear-gradient(135deg, #34a853, #2d8c47);
}

.gradient-accent {
    background: linear-gradient(135deg, #fbbc05, #f29900);
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Иконки с градиентом */
.gradient-icon {
    background: linear-gradient(135deg, #1a73e8, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === МОДАЛЬНОЕ ОКНО И УВЕДОМЛЕНИЯ === */

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #1a73e8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #5f6368;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #1a73e8;
}

.modal-body {
    padding: 20px;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.modal-body input:focus {
    border-color: #1a73e8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Уведомления */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #34a853;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.error {
    border-left-color: #ea4335;
}

.notification i {
    font-size: 20px;
}

.notification.success i {
    color: #34a853;
}

.notification.error i {
    color: #ea4335;
}

.notification span {
    color: #202124;
    font-weight: 500;
}

/* Социальные ссылки */
.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Статистика на главной */
.hero-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 5px;
}

.hero-stats .label {
    color: #5f6368;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Кнопки на главной */
.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* === НОВЫЙ LAYOUT С КАЛЬКУЛЯТОРОМ В HERO === */

.hero-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    position: relative;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    animation-delay: 0.1s;
}

.compact-calculator {
    flex: 0 0 320px;
    animation-delay: 0.3s;
}

/* Для больших экранов - калькулятор справа от контента */
@media (min-width: 992px) {
    .hero-wrapper {
        flex-wrap: nowrap;
    }
    
    .hero-content {
        order: 1;
    }
    
    .compact-calculator {
        order: 2;
        margin-top: 0;
    }
}

/* Для средних экранов - калькулятор под контентом */
@media (max-width: 991px) and (min-width: 769px) {
    .hero-wrapper {
        flex-direction: column;
    }
    
    .compact-calculator {
        align-self: flex-end;
        margin-top: 20px;
    }
}

/* Для мобильных - калькулятор занимает всю ширину */
@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
    }
    
    .compact-calculator {
        width: 100%;
        max-width: 400px;
        margin: 20px auto 0;
    }
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Улучшенный внешний вид героя */
.hero {
    padding: 140px 0 80px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}
