/* =====================================================
   САНТЕХНИК ВАСЯ — ГЛАВНЫЙ СТИЛЬ
   ===================================================== */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1a2330;
    background: #fff;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- SECTION ---------- */
.section {
    padding: 80px 0;
}

.section-blue {
    background: #0f3460;
    color: #fff;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0f3460;
}

.section-head p {
    font-size: 1.05rem;
    color: #5a6a7e;
}

.section-head.light h2 {
    color: #fff;
}

.section-head.light p {
    color: #a8c4e0;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(0,0,0,0.15); }

.btn-primary {
    background: #e84545;
    color: #fff;
    border-color: #e84545;
}

.btn-primary:hover { background: #c73232; border-color: #c73232; }

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn-full {
    display: block;
    width: 100%;
    text-align: center;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 68px;
}

.nav-logo {
    font-size: 1.25rem;
    color: #0f3460;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-logo strong {
    color: #e84545;
}

.nav-links {
    display: flex;
    gap: 24px;
    flex: 1;
}

.nav-links a {
    color: #1a2330;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: #e84545; }

.nav-phone {
    font-weight: 700;
    color: #0f3460;
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s;
}

.nav-phone:hover { color: #e84545; }

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #0f3460;
    margin-left: auto;
    padding: 4px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid #e8ecf0;
    padding: 16px 20px 20px;
    gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    padding: 10px 12px;
    font-size: 1rem;
    color: #1a2330;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}

.mobile-menu a:hover { background: #f0f4fa; color: #0f3460; }

.mm-phone {
    font-weight: 700;
    color: #0f3460 !important;
    margin-top: 8px;
    border-top: 1px solid #e8ecf0;
    padding-top: 14px !important;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(15,52,96,0.88) 50%, rgba(15,52,96,0.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 620px;
}

.hero-badge {
    display: inline-block;
    background: rgba(232,69,69,0.9);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.hero-chips li {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.25s, transform 0.2s;
}

.service-card:hover {
    box-shadow: 0 8px 32px rgba(15,52,96,0.12);
    transform: translateY(-4px);
}

.s-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f3460;
}

.service-card p {
    font-size: 0.875rem;
    color: #5a6a7e;
    flex: 1;
}

.s-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e84545;
    margin-top: 4px;
}

/* =====================================================
   WHY ME
   ===================================================== */
.why-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.why-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(6px);
}

.why-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid rgba(255,255,255,0.4);
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.why-card p {
    font-size: 0.9rem;
    color: #a8c4e0;
    line-height: 1.6;
}

.why-advantages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.adv-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.adv-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.adv-item strong {
    display: block;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
}

.adv-item p {
    font-size: 0.875rem;
    color: #a8c4e0;
    margin: 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid rgba(255,255,255,0.12);
}

.stat {
    text-align: center;
}

.stat span {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: #e84545;
    line-height: 1;
    margin-bottom: 6px;
}

.stat p {
    font-size: 0.875rem;
    color: #a8c4e0;
    margin: 0;
}

/* =====================================================
   CALCULATOR
   ===================================================== */
.calc-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    background: #f5f8fc;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(15,52,96,0.07);
}

.calc-form { display: flex; flex-direction: column; gap: 20px; }

.calc-row { display: flex; flex-direction: column; gap: 6px; }

.calc-row label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.calc-row select,
.calc-row input {
    padding: 12px 14px;
    border: 1.5px solid #dbe4ee;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #1a2330;
    transition: border-color 0.2s;
    outline: none;
}

.calc-row select:focus,
.calc-row input:focus {
    border-color: #3a7bd5;
}

.calc-result-block {
    background: #fff;
    border: 2px solid #3a7bd5;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
}

.calc-label {
    font-size: 0.85rem;
    color: #5a6a7e;
    margin-bottom: 6px;
    font-weight: 500;
}

.calc-price {
    font-size: 2rem;
    font-weight: 800;
    color: #e84545;
    margin-bottom: 6px;
}

.calc-note {
    font-size: 0.78rem;
    color: #9aa5b4;
}

.calc-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-info-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15,52,96,0.05);
}

.calc-info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f3460;
    margin-bottom: 12px;
}

.calc-info-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-info-card li {
    font-size: 0.9rem;
    color: #5a6a7e;
    padding-left: 4px;
}

/* =====================================================
   PORTFOLIO
   ===================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.portfolio-item {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.portfolio-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.portfolio-item:hover img { transform: scale(1.06); }

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: #fff;
    padding: 20px 14px 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* =====================================================
   REVIEWS
   ===================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px 24px;
    position: relative;
    box-shadow: 0 2px 12px rgba(15,52,96,0.06);
    transition: box-shadow 0.2s;
}

.review-card:hover { box-shadow: 0 6px 24px rgba(15,52,96,0.12); }

.review-stars {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #f5a623;
}

.review-text {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 18px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0ecff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f3460;
    flex-shrink: 0;
}

.review-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1a2330;
}

.review-date {
    font-size: 0.8rem;
    color: #9aa5b4;
}

.review-source {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef0f3;
    font-size: 0.8rem;
    color: #9aa5b4;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =====================================================
   CONTACTS / FORM
   ===================================================== */
.contacts-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contacts-info { display: flex; flex-direction: column; gap: 24px; }

.contacts-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f3460;
    margin-bottom: 4px;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: #1a2330;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: #e0ecff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item a {
    color: #0f3460;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-item a:hover { color: #e84545; }

/* Contact Form */
.contact-form {
    background: #f5f8fc;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(15,52,96,0.07);
}

.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f3460;
    margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dbe4ee;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #1a2330;
    transition: border-color 0.2s;
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus { border-color: #3a7bd5; }

.form-group textarea { min-height: 100px; }

.form-success {
    background: #e6f9f0;
    border: 1px solid #52c07a;
    color: #1a7a47;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 16px;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #f87171;
    color: #c0392b;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* =====================================================
   MAP
   ===================================================== */
.map-wrap {
    border-radius: 16px;
    overflow: hidden;
    height: 280px;
    background: #dbe4ee;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: #0b2444;
    color: #a8c4e0;
    padding: 48px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-brand .nav-logo {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col li a {
    font-size: 0.875rem;
    color: #a8c4e0;
    transition: color 0.2s;
}

.footer-col li a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom a {
    color: #a8c4e0;
    transition: color 0.2s;
}

.footer-bottom a:hover { color: #fff; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
    .why-grid { grid-template-columns: 1fr; }
    .why-advantages { grid-template-columns: 1fr; }
    .calc-wrap { grid-template-columns: 1fr; }
    .contacts-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }

    .nav-links,
    .nav-phone { display: none; }

    .burger { display: block; }

    .hero { min-height: 460px; }
    .hero h1 { font-size: 2rem; }
    .hero-content { padding: 60px 20px; }

    .section-head h2 { font-size: 1.6rem; }

    .services-grid { grid-template-columns: 1fr 1fr; }

    .why-card { max-width: 320px; margin: 0 auto; }
    .why-advantages { grid-template-columns: 1fr; }

    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 24px 16px; }
    .stat span { font-size: 1.8rem; }

    .calc-wrap { padding: 24px 18px; gap: 28px; }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; text-align: center; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 24px 18px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}