:root {
    --primary-color: #1E3A8A; /* Trustworthy Dark Blue */
    --primary-hover: #152C6B;
    --accent-color: #FF6B35; /* Energetic Orange */
    --accent-hover: #E85A24;
    --text-dark: #2A2D34;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

.section-title span {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-soft);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-color);
}

.logo-accent {
    color: var(--accent-color);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 600;
    font-size: 15px;
}

.nav a:hover {
    color: var(--accent-color);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
}

.phone-link:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   background:linear-gradient(135deg, rgba(17, 19, 26, 0.9), rgba(30, 58, 138, 0.7)), url(../images/bg.jpg) no-repeat center center / cover;
    z-index: -1;
}

.hero-content {
    max-width: 650px;
    color: var(--bg-white);
}

.badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--bg-white);
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-phone {
    display: flex;
    flex-direction: column;
}

.hero-phone span {
    font-size: 13px;
    opacity: 0.8;
}

.highlight-phone {
    color: var(--bg-white);
    font-size: 22px;
}

/* Grids */
.grid-4, .grid-3 {
    display: grid;
    gap: 30px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Cards */
.card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Advantages */
.advantages {
    padding: 80px 0;
}

.advantage-card {
    text-align: center;
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.advantage-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.advantage-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Services */
.services {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.service-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

.service-content p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
    display: block;
    margin-top: auto;
}

/* Process */
.process {
    padding: 80px 0;
}

.process-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    position: relative;
}

.process-step {
    text-align: center;
    background: var(--bg-white);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    position: relative;
}

.step-num {
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 24px;
    margin: 0 auto 20px;
}

.process-step h3 {
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-light);
    font-size: 15px;
}

/* Portfolio */
.portfolio {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(30, 58, 138, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-overlay span {
    color: var(--bg-white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    padding: 10px 25px;
    border: 2px solid var(--bg-white);
    border-radius: 30px;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-overlay span {
    transform: translateY(0);
}

/* Улучшенный лайтбокс */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000; /* Поднимаем выше всех */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out; /* Подсказка, что можно закрыть кликом */
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 4px;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    cursor: default;
}

/* Анимация появления */
.lightbox.active .lightbox-img {
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
    z-index: 2001;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Reviews */
.reviews {
    padding: 80px 0;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
}

.review-card h4 {
    margin-bottom: 2px;
}

.rating {
    font-size: 14px;
}

.review-card p {
    font-style: italic;
    color: var(--text-light);
}

/* FAQ */
.faq {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-content {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* CTA */
.cta {
    padding: 100px 0;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-align: center;
}

.cta h2 {
    color: var(--bg-white);
    font-size: 40px;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
}

/* Contacts */
.contacts {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.contact-info {
    padding: 50px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item strong {
    color: var(--primary-color);
}

.contact-item .phone-link {
    color: var(--accent-color);
    font-size: 22px;
}

.contact-info .btn {
    margin-top: 20px;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer .logo {
    color: var(--bg-white);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-phone a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
}

.footer-phone a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
    color: #9CA3AF;
    font-size: 14px;
}
/* Фиксированная панель кнопок */
.mobile-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    z-index: 9999;
    padding: 10px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.control-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.control-btn:active {
    transform: scale(0.95);
}

.call-btn {
    background-color: #1e293b; /* Цвет основной темы (синий) */
}

.whatsapp-btn {
    background-color: #00a554; /* Фирменный цвет WhatsApp */
}

.control-btn .icon {
    font-size: 18px;
}

/* Скрываем на ПК, показываем на экранах до 768px */
@media (min-width: 769px) {
    .mobile-controls {
        display: none;
    }
}

/* Добавляем отступ футеру, чтобы кнопки его не перекрывали в самом низу */
@media (max-width: 768px) {
    footer {
        padding-bottom: 80px;
    }
}
/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 38px; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-map img { height: 300px; min-height: auto; }
}

@media (max-width: 768px) {
    .nav { display: none; } /* Simplified for mobile, usually needs a hamburger menu */
    .hero { padding: 120px 0 60px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .footer-container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .header-contact .phone-link { display: none; }
    .hero h1 { font-size: 32px; }
    .section-title { font-size: 28px; }
    .cta h2 { font-size: 30px; }
    .contact-info { padding: 30px 20px; }
}