/* Modern Corporate Design System & Stylesheet */

:root {
    /* Color Palette */
    --primary: #00448c;
    --primary-hover: #00336a;
    --primary-light: #e6f0fa;
    --secondary: #006970;
    --secondary-hover: #004f54;
    --secondary-light: #e0f2f1;

    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-white: #ffffff;
    --text-dark: #0f172a;

    --accent: #f59e0b;
    --accent-red: #ef4444;

    /* Typography Font Stack */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'IBM Plex Sans', sans-serif;

    /* Layout Sizes */
    --container-max: 1280px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
}


/* =========================================================
   Base Styles
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}


/* =========================================================
   Container
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}


/* =========================================================
   Typography
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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


/* =========================================================
   Grid Utilities
   ========================================================= */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* =========================================================
   Buttons
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: var(--text-white);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

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

.btn-block {
    display: flex;
    width: 100%;
}


/* =========================================================
   Badge
   ========================================================= */

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.logo-image {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.brand-name.white {
    color: var(--text-white);
}

.brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9375rem;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.phone-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.0625rem;
}

.work-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 2;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}


/* =========================================================
   Hero Section
   ========================================================= */

.hero-section {
    background-color: var(--bg-surface);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-advantages {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: 40px;
}

.hero-adv-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.adv-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary);
}

.hero-actions-btns {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-bg {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1;
    border-radius: 24px;
    background-color: var(--primary-light);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}


/* =========================================================
   Stats Section
   ========================================================= */

.stats-section {
    padding: 40px 0;
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-card {
    background-color: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* =========================================================
   Section Header
   ========================================================= */

.section-header {
    margin-bottom: 56px;
    max-width: 720px;
}

.section-header.align-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-muted);
}


/* =========================================================
   Services Section
   ========================================================= */

.services-section {
    padding: 50px 0;
    background-color: var(--bg-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
    align-items: stretch;
}

.service-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px 22px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.service-icon-box {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary);
}

.service-icon-box.blue {
    background-color: var(--primary-light);
    color: var(--primary);
}

.service-icon-box.dark-blue {
    background-color: var(--primary-light);
    color: var(--primary);
}

.service-icon-box.orange {
    background-color: #fff3e0;
    color: var(--accent);
}

.service-icon-box.red {
    background-color: #ffebee;
    color: var(--accent-red);
}

.service-icon-box svg {
    width: 28px;
    height: 28px;
}

.service-card-title {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.service-card-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 0;
}

.service-card-list {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: auto 0 0;
}

.service-card-list li {
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    padding-left: 20px;
    color: var(--text-dark);
}

.service-card-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary);
}


/* =========================================================
   Additional Services
   ========================================================= */

.add-services-title {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 32px;
    text-align: center;
}

.add-services-wrapper {
    background-color: var(--bg-surface-alt);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--border-color);
}

.add-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.add-service-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.add-service-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.add-service-info h4 {
    font-size: 1.0625rem;
    margin-bottom: 8px;
}

.add-service-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}


/* =========================================================
   Advantages Section
   ========================================================= */

.advantages-section {
    padding: 50px 0;
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.advantages-main {
    align-items: center;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.adv-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.adv-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--secondary-light);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.adv-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.adv-text h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.adv-text p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.advantages-image-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}

.adv-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adv-overlay-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background-color: var(--primary);
    color: var(--text-white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-lg);
}

.adv-badge-num {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.adv-badge-txt {
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* =========================================================
   Process Section
   ========================================================= */

.process-section {
    padding: 50px 0;
    background-color: var(--bg-surface);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-light);
    background-color: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.step-line {
    height: 2px;
    background-color: var(--primary-light);
    flex-grow: 1;
    margin-left: 16px;
}

.step-item:last-child .step-line {
    display: none;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0;
}


/* =========================================================
   SRO Section
   ========================================================= */

.sro-section {
    padding: 50px 0;
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.sro-info-box {
    padding-right: 40px;
}

.sro-title {
    font-size: 2.25rem;
    margin-bottom: 24px;
}

.sro-text {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.sro-credentials {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.credential-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.credential-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.credential-item strong {
    color: var(--text-dark);
}

.credential-item span {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
}

.sro-visual-box {
    display: flex;
    justify-content: center;
}

.sro-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    height: 100%;
}

.sro-doc-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
}

.sro-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.sro-doc-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1.414;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.sro-doc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   Gallery Section
   ========================================================= */

.gallery-section {
    padding: 50px 0;
    background-color: var(--bg-base);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    cursor: pointer;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 68, 140, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--bg-surface);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transform: scale(0.9);
    transition: var(--transition);
}

.gallery-item:hover .gallery-zoom-icon {
    transform: scale(1);
}

.gallery-zoom-icon svg {
    width: 20px;
    height: 20px;
}

.gallery-item-caption {
    height: 118px;
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    transition: var(--transition);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-item:hover .gallery-item-caption {
    color: var(--primary);
}


/* =========================================================
   FAQ Section
   ========================================================= */

.faq-section {
    padding: 50px 0;
    background-color: var(--bg-surface);
}

.faq-accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-surface);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.faq-trigger:hover {
    color: var(--primary);
}

.faq-item.active .faq-trigger {
    color: var(--primary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background-color: var(--bg-surface);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.faq-icon svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    background-color: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
}

.faq-item.active .faq-icon svg {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content p {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}


/* =========================================================
   Callback Section
   ========================================================= */

.callback-section {
    padding: 50px 0;
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
}

.callback-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.callback-info {
    padding: 60px;
    background-color: var(--primary);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.callback-title {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 20px;
}

.callback-desc {
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

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

.cb-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cb-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cb-contact-item svg {
    width: 20px;
    height: 20px;
}

.cb-contact-item div {
    display: flex;
    flex-direction: column;
}

.cb-contact-item span {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
}

.cb-contact-item a {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.125rem;
}

.callback-form-wrapper {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* =========================================================
   Forms
   ========================================================= */

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background-color: var(--bg-base);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(0, 68, 140, 0.1);
}

.form-policy {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

.form-policy a {
    color: var(--primary);
    text-decoration: underline;
}


/* =========================================================
   Contacts & Map
   ========================================================= */

.contacts-section {
    padding: 50px 0;
    background-color: var(--bg-surface);
}

.contacts-details {
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacts-title {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.contacts-intro {
    color: var(--text-muted);
    margin-bottom: 40px;
}

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

.contact-detail-card {
    display: flex;
    gap: 20px;
}

.pointer-events-none {
    pointer-events: none;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon svg {
    width: 24px;
    height: 24px;
}

.detail-text span {
    font-size: 0.8125rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.detail-text p,
.detail-text div {
    font-size: 1.0625rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0;
    margin-top: 4px;
}

.detail-text a {
    color: var(--text-dark);
}

.detail-text a:hover {
    color: var(--primary);
}

.messengers-block {
    margin-top: 40px;
}

.msg-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.msg-btn.telegram {
    background-color: #0088cc;
}

.msg-btn.telegram:hover {
    background-color: #0077b3;
    color: var(--text-white);
    transform: translateY(-1px);
}

.contacts-map-wrapper {
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.map-container {
    width: 100%;
    height: 100%;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background-color: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-grid h4 {
    color: var(--text-white);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 4px;
}

.footer-contacts p {
    font-size: 0.9375rem;
    line-height: 1.8;
}

.footer-contacts a {
    color: var(--text-white);
}

.footer-details p {
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.policy-link {
    color: rgba(255, 255, 255, 0.5);
}

.policy-link:hover {
    color: var(--text-white);
}


/* =========================================================
   Modal
   ========================================================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-surface);
    padding: 48px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.text-center {
    text-align: center;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background-color: var(--secondary-light);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

.modal-close-btn {
    margin-top: 24px;
    min-width: 140px;
}


/* =========================================================
   Lightbox
   ========================================================= */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 32px;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--text-white);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--text-white);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 24px;
    height: 24px;
}


/* =========================================================
   Cookie Banner
   ========================================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(15,23,42,0.08);
    z-index: 99;
    padding: 20px 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(110%);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cookie-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}


/* =========================================================
   Project-specific
   ========================================================= */

#advantages .section-title,
#advantages .section-subtitle {
    text-align: center;
}

#advantages .section-header {
    margin-bottom: 0;
}

#iz86cn {
    padding-top: 40px;
}

#i53z12 {
    color: var(--primary);
}

.hero-image-wrapper .adv-main-img {
    width: 100%;
    height: 492px;
    object-fit: cover;
    border-radius: 16px;
}

.contacts-map-wrapper iframe,
.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

#idqzr1 {
    display: none;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1200px) {

    .nav-menu {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .header-actions {
        gap: 12px;
    }

    .work-time {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }

    .step-item:nth-child(2) .step-line {
        display: none;
    }
}


/* =========================================================
   Tablet / Mobile Header
   Главное исправление меню
   ========================================================= */

@media (max-width: 1100px) {

    .site-header {
        position: sticky;
        top: 0;
        z-index: 200;
        overflow: visible;
    }

    .header-container {
        position: relative;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    /*
     * ВАЖНО:
     * Меню теперь absolute и начинается от нижней границы header.
     * top: 100% вместо фиксированного top: 80px.
     * Поэтому меню не может наехать на логотип даже если
     * фактическая высота шапки немного изменилась.
     */
    .nav-menu {
        position: absolute;

        top: 100%;
        left: 0;
        right: 0;

        z-index: 190;

        width: 100vw;
        height: calc(100dvh - 80px);
        max-height: calc(100dvh - 80px);

        margin-left: calc(50% - 50vw);

        padding: 36px 20px;

        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 24px;

        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;

        background-color: var(--bg-surface);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);

        transform: translateX(100%);
        visibility: hidden;
        opacity: 0;
        pointer-events: none;

        transition:
            transform 0.3s ease-in-out,
            opacity 0.2s ease-in-out,
            visibility 0.3s ease-in-out;
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        display: block;
        width: 100%;
        max-width: 420px;
        padding: 8px 12px;
        text-align: center;
        font-size: 1.125rem;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


@media (max-width: 992px) {

    .container {
        padding: 0 20px;
    }

    .grid-2,
    .grid-3,
    .hero-container,
    .advantages-main,
    .sro-section .grid-2,
    .contacts-section .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-section,
    .services-section,
    .advantages-section,
    .process-section,
    .sro-section,
    .gallery-section,
    .faq-section,
    .callback-section,
    .contacts-section {
        padding: 44px 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-image-wrapper {
        order: -1;
        margin-bottom: 12px;
    }

    .hero-image-wrapper .adv-main-img {
        height: 380px;
    }
.hero-content {
    margin-top: 30px;
}
    .sro-info-box,
    .contacts-details {
        padding-right: 0;
    }

    .sro-visual-box {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .callback-card {
        grid-template-columns: 1fr;
    }

    .callback-info,
    .callback-form-wrapper {
        padding: 40px;
    }

    .footer-grid {
        padding-bottom: 40px;
    }
    .adv-overlay-badge {
    bottom: -60px;
        left: 0;
    }
}


@media (max-width: 768px) {

    .container {
        padding: 0 16px;
    }

    .header-container {
        height: 72px;
    }

    .logo-image {
        height: 42px;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .brand-sub {
        font-size: 0.62rem;
    }

    .phone-link {
        font-size: 0.9375rem;
    }

    /*
     * top здесь больше НЕ задаём.
     * Оно уже top: 100% относительно header-container.
     */
    .nav-menu {
        height: calc(100dvh - 72px);
        max-height: calc(100dvh - 72px);
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .services-grid,
    .process-steps,
    .add-services-grid {
        grid-template-columns: 1fr;
    }

    .step-item .step-line {
        display: none;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-title,
    .sro-title,
    .contacts-title {
        font-size: 1.9rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-advantages {
        margin-bottom: 28px;
    }

    .hero-image-wrapper .adv-main-img {
        height: 340px;
    }

    .add-services-wrapper {
        padding: 30px;
    }

    #iz86cn {
        padding: 30px;
    }

    .callback-info,
    .callback-form-wrapper {
        padding: 32px;
    }

    .contacts-map-wrapper {
        height: 380px;
    }

    .cookie-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .cookie-banner {
        padding: 16px 0;
    }

    .lightbox-content {
        max-width: calc(100% - 80px);
    }

    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


@media (max-width: 576px) {

    .gallery-item-caption {
        height: 118px;
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    .hero-section,
    .services-section,
    .advantages-section,
    .process-section,
    .sro-section,
    .gallery-section,
    .faq-section,
    .callback-section,
    .contacts-section {
        padding: 36px 0;
    }

    .header-contacts {
        display: none;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title,
    .sro-title,
    .contacts-title {
        font-size: 1.65rem;
    }

    .hero-actions-btns {
        flex-direction: column;
    }

    .hero-actions-btns .btn {
        width: 100%;
    }

    .hero-image-wrapper .adv-main-img {
        height: 280px;
    }

    .services-grid {
        gap: 18px;
    }

    .service-card {
        padding: 20px 20px 26px;
    }

    .add-services-wrapper,
    #iz86cn {
        padding: 22px;
    }

    .add-service-card {
        padding: 20px;
        gap: 16px;
    }

    .sro-docs-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-trigger {
        padding: 18px;
        font-size: 1rem;
        gap: 14px;
    }

    .faq-icon {
        flex-shrink: 0;
    }

    .faq-content p {
        padding: 0 18px 18px;
    }

    .callback-info,
    .callback-form-wrapper {
        padding: 26px 20px;
    }

    .callback-title {
        font-size: 1.6rem;
    }

    .cb-contact-item a {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .credential-item {
        flex-direction: column;
        gap: 4px;
    }

    .contacts-info-list {
        gap: 22px;
    }

    .contact-detail-card {
        gap: 14px;
    }

    .detail-text p,
    .detail-text div {
        font-size: 0.95rem;
        overflow-wrap: anywhere;
    }

    .contacts-map-wrapper {
        height: 320px;
    }

    .site-footer {
        padding: 36px 0 24px;
    }

    .footer-grid {
        gap: 28px;
        padding-bottom: 28px;
        margin-bottom: 24px;
    }

    .modal-content {
        width: calc(100% - 24px);
        padding: 30px 20px;
    }

    .lightbox-content {
        max-width: calc(100% - 48px);
    }
}