/* ==========================================================================
   DCG — Dispute Consulting Group
   style.css — Extracted from index.html + mobile adaptation
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #64B97A;
    --color-secondary: #FFFFFF;
    --color-accent: #4FA468;
    --color-accent-light: #3E8F58;
    --color-gold: #9C8468;
    --color-text: #1E1E1E;
    --color-text-muted: #6B6B6B;
    --color-border: rgba(30, 30, 30, 0.1);
    --color-bg-light: #F2F2F2;
    --color-bronze: #6E5A46;
    --color-bronze-dark: #4B3A2B;
    --color-bronze-light: #9C8468;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on all viewports */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* added for mobile safety */
}

body {
    font-family: var(--font-body);
    background: var(--color-primary);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Global image rule — prevents images from breaking layout */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   3. Background
   -------------------------------------------------------------------------- */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(79, 164, 104, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(156, 132, 104, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. Navigation
   -------------------------------------------------------------------------- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.logo span {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.nav-cta {
    padding: 0.7rem 1.8rem;
    background: var(--color-accent);
    color: #000000;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--color-accent-light);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 164, 104, 0.3);
}

/* --------------------------------------------------------------------------
   5. Hamburger Menu (mobile nav toggle)
   -------------------------------------------------------------------------- */
.nav-toggle {
    display: none;
    /* hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--color-text);
    font-size: 1.6rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.nav-toggle:hover {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    /* safe adaptive replacement for height: 100vh */
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    z-index: 1;
    overflow: hidden;
    background: #fff;
}

/* Green diagonal panel on the right */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, #6BCB77 0%, #64B97A 50%, #5AAA6E 100%);
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 0;
}

.hero-container {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 400px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    position: relative;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-title .highlight {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(79, 164, 104, 0.3);
}

.hero-cta:hover {
    background: var(--color-accent-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(79, 164, 104, 0.4);
}

/* Hero Image */
.hero-image {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 90vh;
    overflow: visible;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    z-index: 5;
}

.hero-image img {
    position: relative;
    width: auto;
    height: 90vh;
    max-height: 90vh;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25));
    z-index: 5;
    transform: translateX(5%);
}

/* --------------------------------------------------------------------------
   7. Stats Section
   -------------------------------------------------------------------------- */
.stats {
    background: var(--color-secondary);
    padding: 4rem 5%;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. About Section
   -------------------------------------------------------------------------- */
.about {
    padding: 8rem 5%;
    position: relative;
    z-index: 1;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 4rem;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.about-text strong {
    color: var(--color-text);
    font-weight: 600;
}

.problem-list {
    list-style: none;
    margin: 1.5rem 0;
}

.problem-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--color-text-muted);
}

.problem-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.5rem;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   9. Services Section
   -------------------------------------------------------------------------- */
.services {
    padding: 8rem 5%;
    background: var(--color-secondary);
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--color-border);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* reduced from 300px for better mobile */
    gap: 2rem;
}

.service-card {
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 15px 40px rgba(79, 164, 104, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Service icon images — cap size on all screens */
.service-icon img {
    width: 100px;
    height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.service-description {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   10. Process Section
   -------------------------------------------------------------------------- */
.process {
    padding: 8rem 5%;
    position: relative;
    z-index: 1;
}

.process-steps {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.step {
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2.5rem;
    align-items: start;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--color-accent);
    transform: translateX(10px);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.step-content p {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   11. Advantages Section
   -------------------------------------------------------------------------- */
.advantages {
    padding: 8rem 5%;
    background: var(--color-secondary);
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--color-border);
}

.advantages-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* reduced from 350px */
    gap: 2rem;
}

.advantage-card {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 164, 104, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.advantage-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--color-accent);
}

.advantage-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.advantage-description {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   12. Team Section
   -------------------------------------------------------------------------- */
.team {
    padding: 8rem 5%;
    position: relative;
    z-index: 1;
}

.team-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* reduced from 280px */
    gap: 2.5rem;
}

.team-card {
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 15px 40px rgba(79, 164, 104, 0.2);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.team-position {
    color: var(--color-accent);
    font-size: 0.95rem;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   13. FAQ Section
   -------------------------------------------------------------------------- */
.faq {
    padding: 8rem 5%;
    background: var(--color-secondary);
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--color-border);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-accent);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   14. Contact Form
   -------------------------------------------------------------------------- */
.contact {
    padding: 8rem 5%;
    position: relative;
    z-index: 1;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 4rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.phone-input-wrapper {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.phone-flag {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* prevents flag from shrinking on small screens */
}

.phone-number-full {
    flex: 1;
}

.form-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 164, 104, 0.3);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
footer {
    padding: 4rem 5% 2rem;
    background: var(--color-secondary);
    border-top: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.footer-brand span {
    color: var(--color-accent);
}

.footer-description {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-top: 1rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   16. Scroll Reveal Animation
   -------------------------------------------------------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breakpoint: 1024px — Tablet landscape
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    /* Reduce section padding slightly */
    .about,
    .services,
    .process,
    .advantages,
    .team,
    .faq,
    .contact {
        padding: 6rem 5%;
    }

    .hero-title {
        font-size: 3.2rem;
    }
}

/* --------------------------------------------------------------------------
   Breakpoint: 968px — Hero stacks to column
   -------------------------------------------------------------------------- */
@media (max-width: 968px) {

    /*
     * На мобиле убираем диагональную зелёную полоску (::after) —
     * она перекрывала текст. Вместо неё зелёный фон даётся
     * только блоку с изображением (.hero-image).
     */
    .hero::after {
        display: none;
    }

    .hero-container {
        flex-direction: column;
        gap: 0;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        /* Текст на белом фоне — хорошо читается */
        padding-bottom: 2.5rem;
        z-index: 2;
    }

    /* Hero CTA становится full-width */
    .hero-cta {
        width: 100%;
        justify-content: center;
    }

    /*
     * Блок с изображением получает зелёный фон —
     * визуально сохраняет стиль десктопа, но текст не перекрывается
     */
    .hero-image {
        width: calc(100% + 10%);
        /* выходит за padding секции */
        margin-left: -5%;
        margin-right: -5%;
        height: 55vw;
        /* пропорционально ширине экрана */
        min-height: 220px;
        max-height: 380px;
        justify-content: center;
        align-items: flex-end;
        order: 2;
        background: linear-gradient(135deg, #6BCB77 0%, #64B97A 50%, #5AAA6E 100%);
        border-radius: 0;
        overflow: hidden;
    }

    .hero-image img {
        height: 100%;
        width: auto;
        max-height: 100%;
        object-fit: contain;
        object-position: center bottom;
        transform: translateX(0);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* --------------------------------------------------------------------------
   Breakpoint: 768px — Mobile portrait
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

    /* Navigation */
    .nav-menu {
        display: none;
        /* hidden by default; toggled via JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.99);
        border-top: 1px solid var(--color-border);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    /* When JS adds .nav-open class to the menu */
    .nav-menu.nav-open {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.9rem 5%;
        font-size: 1rem;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu li:last-child a {
        border-bottom: none;
        margin: 0.5rem 5%;
        width: calc(100% - 10%);
        text-align: center;
    }

    .nav-toggle {
        display: block;
        /* show hamburger on mobile */
    }

    /* Typography */
    body {
        font-size: 16px;
    }

    h1,
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2,
    .section-title,
    .about-title {
        font-size: 1.8rem;
    }

    /* Hero — увеличен padding-top чтобы текст не заползал под фиксированный nav */
    .hero {
        padding: 7.5rem 5% 3rem;
    }

    /* Stats */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .stat-item {
        padding: 1.5rem;
        border-bottom: 1px solid var(--color-border);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    /* Sections */
    .about,
    .services,
    .process,
    .advantages,
    .team,
    .faq,
    .contact {
        padding: 4rem 5%;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* Cards — 1 column */
    .services-grid,
    .advantages-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* About & Contact inner padding */
    .about-content,
    .contact-container {
        padding: 2rem;
    }

    /* Process steps — stack number above content */
    .step {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Buttons full-width */
    .hero-cta {
        width: 100%;
        justify-content: center;
    }

    .form-submit {
        font-size: 1rem;
        padding: 1rem;
    }

    /* Form inputs — prevent zoom on iOS (font-size >= 16px) */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
    }

    /* Phone input wraps on very small screens */
    .phone-input-wrapper {
        flex-wrap: wrap;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Service icon images — smaller on mobile */
    .service-icon img {
        width: 70px;
        height: 70px;
    }
}

/* --------------------------------------------------------------------------
   Breakpoint: 480px — Small mobile (iPhone SE, etc.)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    nav {
        padding: 1rem 4%;
    }

    .logo {
        font-size: 1.2rem;
    }

    /* Скрываем подпись логотипа чтобы nav не переносился на 2 строки */
    .logo span {
        display: none;
    }

    .hero {
        padding-top: 6rem;
        padding-bottom: 2.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .hero-image {
        height: 40vh;
    }

    .hero-image img {
        max-height: 40vh;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about,
    .services,
    .process,
    .advantages,
    .team,
    .faq,
    .contact {
        padding: 3rem 4%;
    }

    .about-content,
    .contact-container {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .step {
        padding: 1.5rem;
        gap: 1rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .step-content h3 {
        font-size: 1.2rem;
    }

    .footer-container {
        gap: 1.5rem;
    }

    .footer-brand {
        font-size: 1.4rem;
    }

    /* Service icon images — even smaller on 480px */
    .service-icon img {
        width: 60px;
        height: 60px;
    }

    .faq-question {
        font-size: 1rem;
    }

    .faq-item {
        padding: 1.5rem;
    }
}