:root {
    --blue: #002b5b;
    --yellow: #ffcc00;
    --dark: #222;
    --gray: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: var(--dark); line-height: 1.6; scroll-behavior: smooth; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: var(--white); padding: 15px 0; box-shadow: 0 2px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 28px; font-weight: bold; color: var(--blue); }
.logo span { color: var(--yellow); }

nav ul { display: flex; list-style: none; }
nav ul li { margin: 0 15px; }
nav ul li a { text-decoration: none; color: var(--dark); font-weight: 500; transition: 0.3s; }
nav ul li a:hover { color: var(--blue); }

.phone-link { color: var(--blue); text-decoration: none; font-weight: bold; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.phone-link i { color: var(--yellow); font-size: 1.2rem; }
.phone-link:hover { color: var(--yellow); transform: scale(1.05); }

/* Hero Section */
.hero { 
    background: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75)), url('bg.avif') no-repeat center center/cover;
    min-height: 80vh; display: flex; align-items: center; text-align: center; padding: 40px 0;
}
.hero-content { width: 100%; }
.hero h1 { font-size: 3.5rem; color: var(--blue); margin-bottom: 20px; font-weight: 700; line-height: 1.2; }
.hero h1 span { background: var(--yellow); padding: 0 15px; border-radius: 5px; }
.hero p { font-size: 1.4rem; margin-bottom: 40px; color: #444; }
.hero-btns { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

/* Buttons */
.btn-main { background: var(--yellow); color: var(--blue); padding: 16px 40px; border-radius: 8px; text-decoration: none; font-weight: bold; border: none; cursor: pointer; transition: 0.3s; font-size: 1rem; box-shadow: 0 4px 15px rgba(255, 204, 0, 0.2); }
.btn-main:hover { background: #e6b800; transform: translateY(-3px); }
.btn-outline { border: 2px solid var(--blue); color: var(--blue); padding: 14px 40px; border-radius: 8px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.btn-outline:hover { background: var(--blue); color: white; }

/* Services */
.services { padding: 100px 0; background: var(--gray); }
.section-title { text-align: center; margin-bottom: 60px; font-size: 2.8rem; color: var(--blue); position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--yellow); margin: 15px auto 0; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.service-card { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: 0.4s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-10px); }

.card-img { height: 220px; width: 100%; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-card:hover .card-img img { transform: scale(1.1); }

.card-body { padding: 30px; text-align: center; flex-grow: 1; }
.icon-box { width: 70px; height: 70px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: -65px auto 20px; position: relative; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 3px solid var(--yellow); }
.icon-box i { font-size: 28px; color: var(--blue); transition: 0.3s; }
.service-card:hover .icon-box i { transform: scale(1.1); color: var(--blue); }

/* About Section */
.about { padding: 100px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.sub-title { color: var(--yellow); font-weight: bold; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.about-check { margin: 25px 0; }
.about-check p { margin-bottom: 10px; display: flex; align-items: center; font-weight: 500; }
.about-check i { color: #28a745; margin-right: 12px; font-size: 1.2rem; }

.about-stats { display: flex; gap: 20px; }
.stat-item { background: var(--blue); color: white; padding: 30px 10px; border-radius: 20px; text-align: center; flex: 1; border-bottom: 5px solid var(--yellow); }
.stat-item b { font-size: 2.5rem; color: var(--yellow); display: block; }

/* Contact Section (Исправлено) */
.contact { padding: 100px 0; background: var(--blue); color: var(--white); }

/* Текст заголовка в контактах - теперь белый */
.contact .section-title { color: var(--white); }
.contact .section-title::after { background: var(--yellow); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.info-box { display: flex; gap: 20px; margin-bottom: 30px; align-items: center; }
.info-box i { font-size: 1.3rem; color: var(--yellow); background: rgba(255,255,255,0.1); width: 45px; height: 45px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.info-box h4 { margin-bottom: 2px; color: var(--yellow); font-size: 0.9rem; text-transform: uppercase; }
.info-box p { color: var(--white); }

.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 15px; border-radius: 10px; border: none; font-size: 1rem; background: var(--white); }
.contact-form textarea { resize: none; }

/* Footer */
footer { padding: 40px; text-align: center; background: #00152e; color: #888; border-top: 1px solid rgba(255,255,255,0.05); }
footer strong { color: var(--white); }

/* Responsive / Mobile */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.8rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .header-flex { flex-direction: column; gap: 15px; }
    nav ul { margin-bottom: 10px; flex-wrap: wrap; justify-content: center; }
    nav ul li { margin: 5px 10px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; padding: 0 10px; }
    .section-title { font-size: 2.2rem; }
}