/* ============================================================
   Строительство — кровельные работы | Лендинг
   Стили: шрифты, хедер, hero, преимущества, виды работ,
   popup-портфолио, форма, футер, адаптив
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background-color: #f8f8f8;
    line-height: 1.55;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Хедер ---------- */
header {
    padding: 18px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e7e7ea;
    position: sticky;
    top: 0;
    z-index: 900;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1a1a1a;
}

.logo-name span {
    color: #b8860b;
}

.logo-tag {
    font-size: 11px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

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

.nav-menu a {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #b8860b;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-phones .phone {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    transition: color 0.2s;
}

.header-phones .phone:hover {
    color: #b8860b;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #b8860b;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 14px 24px;
    border-radius: 6px;
    transition: background 0.25s, transform 0.25s;
}

.btn-cta:hover {
    background-color: #9d7209;
    transform: translateY(-1px);
}

.btn-cta i {
    font-size: 14px;
}

/* Бургер */
.burger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background-image: linear-gradient(rgba(10, 12, 18, 0.62), rgba(10, 12, 18, 0.62)), url('../images/hero/hero-main.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 30px;
    padding-bottom: 60px;
    overflow: hidden;
    color: #fff;
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    min-height: 560px;
}

.hero-address {
    font-size: 11px;
    color: #d0d3da;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.hero-title-wrap {
    position: relative;
    padding-bottom: 30px;
    max-width: 640px;
}

.hero-title {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    color: #fff;
}

.hero-title .line {
    display: block;
}

.hero-title .line-1 { padding-left: 0; }
.hero-title .line-2 { padding-left: 40px; color: #e8c05a; }
.hero-title .line-3 { padding-left: 80px; }

.hero-sub {
    margin-top: 24px;
    max-width: 520px;
    font-size: 15px;
    color: #e8e9ee;
    letter-spacing: 0.2px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #e8c05a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-arrow {
    position: absolute;
    right: 360px;
    bottom: 40px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    z-index: 5;
}

.hero-arrow:hover {
    background-color: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}

.hero-arrow svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 1.8;
    fill: none;
    transform: rotate(-45deg);
}

/* Прямоугольники преимуществ в hero — колонка справа */
.hero-features {
    position: absolute;
    right: 0;
    top: 0;
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-features .feature-item {
    background-color: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
    padding: 22px 22px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.hero-features .feature-number {
    font-size: 12px;
    font-weight: 600;
    color: #b8860b;
    margin-bottom: 10px;
}

.hero-features .feature-text {
    font-size: 14px;
    font-weight: 500;
    color: #2a2a2a;
    line-height: 1.4;
}

/* ---------- Общие секции ---------- */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 42px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 15px;
    color: #777;
    margin-bottom: 44px;
    max-width: 600px;
}

.section--alt {
    background-color: #e9eef3;
}

/* ---------- Виды работ ---------- */
.works {
    background: #ffffff;
}

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

.work-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e0e0e0;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.work-card:hover img {
    transform: scale(1.05);
}

.work-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 70%);
    pointer-events: none;
}

.work-arrow {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s, transform 0.3s;
}

.work-card:hover .work-arrow {
    background-color: #fff;
    transform: scale(1.08);
}

.work-arrow svg {
    width: 16px;
    height: 16px;
    stroke: #333;
    stroke-width: 1.8;
    fill: none;
    transition: stroke 0.3s;
}

.work-card:hover .work-arrow svg {
    stroke: #b8860b;
}

.work-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.work-label small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-transform: none;
    letter-spacing: 0;
    margin-top: 3px;
}

/* ---------- POPUP-ГАЛЕРЕЯ (портфолио) ---------- */
.popup-gallery {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-gallery.active {
    opacity: 1;
    pointer-events: all;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 20, 0.88);
    backdrop-filter: blur(8px);
}

.popup-content {
    position: relative;
    width: 90vw;
    max-width: 1100px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 20px;
    transform: scale(0.96);
    transition: transform 0.3s ease;
}

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

.popup-title {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align: center;
}

.popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.25s;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.popup-close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.popup-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.popup-slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    position: absolute;
    transition: opacity 0.4s ease;
    user-select: none;
    pointer-events: none;
}

.popup-slider img.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.popup-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.25s, transform 0.25s;
}

.popup-nav:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-50%) scale(1.08);
}

.popup-nav svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.popup-prev { left: 16px; }
.popup-next { right: 16px; }

.popup-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 1px;
    margin-top: 16px;
}

.popup-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    max-width: 100%;
    padding: 4px;
    scrollbar-width: thin;
}

.popup-thumbs::-webkit-scrollbar { height: 4px; }
.popup-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.popup-thumbs img {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.45;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.popup-thumbs img:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.popup-thumbs img.active {
    opacity: 1;
    border-color: #b8860b;
}

/* ---------- О нас / преимущества компании ---------- */
.about {}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.about-item {
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 28px 22px;
}

.about-num {
    font-size: 32px;
    font-weight: 700;
    color: #b8860b;
    margin-bottom: 10px;
}

.about-name {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.about-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* ---------- Как мы работаем ---------- */
.steps {
    background: #e9eef3;
}

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

.step-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 26px 22px;
}

.step-num {
    font-size: 13px;
    font-weight: 700;
    color: #b8860b;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.step-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-text {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
}

/* ---------- Форма / контакты ---------- */
.contacts {
    background: #ffffff;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contacts-info h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.contacts-list li {
    font-size: 14px;
    color: #444;
    display: flex;
    flex-direction: column;
}

.contacts-list .c-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contacts-list .c-val {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

.contacts-list a.c-val:hover {
    color: #b8860b;
}

.contact-email {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(184, 134, 11, 0.5);
}

.form-card {
    background-color: #eef0f5;
    border-radius: 16px;
    padding: 32px;
}

.form-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-card p {
    font-size: 13px;
    color: #777;
    margin-bottom: 22px;
}

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

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d5d9e2;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #b8860b;
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.form-submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

.form-note {
    font-size: 11px;
    color: #999;
    margin-top: 12px;
    line-height: 1.5;
}

.form-success {
    display: none;
    margin-top: 14px;
    padding: 14px;
    background: #e7f4e9;
    color: #2e7d32;
    border-radius: 8px;
    font-size: 14px;
}

.form-success.show {
    display: block;
}

/* ---------- Отзывы ---------- */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.review-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 28px;
}

.review-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 18px;
}

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

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: #b8860b;
}

.review-name {
    font-size: 14px;
    font-weight: 600;
}

.review-role {
    font-size: 12px;
    color: #888;
}

/* ---------- Футер ---------- */
footer {
    background-color: #1c1c1c;
    padding: 70px 0 30px;
}

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

.footer-logo-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #bfbfbf;
    margin-bottom: 14px;
}

.footer-logo-name span {
    color: #b8860b;
}

.footer-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col-title {
    font-size: 13px;
    font-weight: 600;
    color: #e9eef3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 13px;
    color: #bfbfbf;
    text-transform: uppercase;
    transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contacts a {
    font-size: 14px;
    color: #bfbfbf;
    transition: color 0.2s;
}

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

.footer-phone {
    font-size: 18px !important;
    font-weight: 600;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 6px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #bfbfbf;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.25s, transform 0.25s;
}

.social-link i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    color: #bfbfbf;
    transition: color 0.25s;
}

.social-link:hover {
    color: #fff;
    transform: translateX(4px);
}

.social-link:hover i {
    color: #b8860b;
}

.footer-bottom {
    border-top: 1px solid #3a3a3a;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #777;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom a {
    color: #999;
}

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

/* ---------- БЛОК "НАШИ УСЛУГИ" (4 карточки, как на референсе) ---------- */
.services-4 {
    background: #ffffff;
}

.services-4-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.service-4-card {
    background: #f0f1f5;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-4-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.service-4-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-4-card:hover .service-4-img img {
    transform: scale(1.06);
}

.service-4-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
    pointer-events: none;
}

.service-4-cta {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 30px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.25s, color 0.25s;
}

.service-4-cta svg {
    width: 18px;
    height: 18px;
    stroke: #b8860b;
    stroke-width: 2;
    fill: none;
    transition: transform 0.25s;
}

.service-4-card:hover .service-4-cta {
    background: #b8860b;
    color: #fff;
}

.service-4-card:hover .service-4-cta svg {
    stroke: #fff;
    transform: translateX(3px);
}

.service-4-info {
    padding: 22px 20px 26px;
}

.service-4-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-4-text {
    font-size: 14px;
    color: #666;
    line-height: 1.55;
}

/* ---------- БЛОК "КАКИЕ КРОВЕЛЬНЫЕ ЗАДАЧИ МЫ РЕШАЕМ" ---------- */
.tasks {
    background: #e9eef3;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.task-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    transition: transform 0.25s, box-shadow 0.25s;
}

.task-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.task-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #b8860b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}

.task-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.task-text {
    font-size: 14px;
    color: #666;
    line-height: 1.55;
}

/* ---------- БЛОК "О НАС" ---------- */
.about-us {
    background: #ffffff;
}

.about-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-us-info p {
    font-size: 15px;
    color: #555;
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-us-list {
    margin: 18px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-us-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #333;
}

.about-us-list li i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #b8860b;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-us-img {
    border-radius: 16px;
    overflow: hidden;
}

.about-us-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- БЛОК "ПОЧЕМУ КРОВЕЛЬНЫЕ РАБОТЫ ВОСТРЕБОВАНЫ" (статистика) ---------- */
.why-popular {
    background: #e9eef3;
}

.why-popular-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.why-popular-text .section-title {
    margin-bottom: 16px;
}

.why-popular-desc {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 18px;
}

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

.why-stat {
    background: #fff;
    border-radius: 12px;
    padding: 26px 22px;
}

.why-stat-num {
    font-size: 40px;
    font-weight: 700;
    color: #b8860b;
    line-height: 1;
    margin-bottom: 6px;
}

.why-stat-cap {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.why-stat-text {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
}

/* ---------- БЛОК "ПОЧЕМУ КРОВЕЛЬНЫЕ УСЛУГИ ВОСТРЕБОВАНЫ" (преимущества) ---------- */
.why-services {
    background: #ffffff;
}

.why-services-title {
    max-width: 900px;
}

.why-services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.why-service-item {
    background: #f0f1f5;
    border-radius: 12px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s, background 0.25s;
}

.why-service-item:hover {
    background: #b8860b;
    color: #fff;
    transform: translateY(-4px);
}

.why-service-item i {
    font-size: 22px;
    color: #b8860b;
    transition: color 0.25s;
}

.why-service-item:hover i {
    color: #fff;
}

.why-service-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}
@media (max-width: 1100px) {
    .hero-title { font-size: 46px; }
    .hero-title .line-2 { padding-left: 30px; }
    .hero-title .line-3 { padding-left: 60px; }
    .hero-inner { min-height: 480px; }
    .hero-features { width: 300px; }
    .hero-arrow { right: 300px; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .services-4-grid { grid-template-columns: repeat(2, 1fr); }
    .tasks-grid { grid-template-columns: repeat(2, 1fr); }
    .why-services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .contacts-grid { grid-template-columns: 1fr; }
    .about-us-grid { grid-template-columns: 1fr; }
    .why-popular-grid { grid-template-columns: 1fr; }
    .hero-inner { flex-direction: column; }
    .hero-features {
        position: static;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 40px;
    }
    .hero-features .feature-item {
        width: calc(50% - 7px);
    }
    .hero-arrow { right: 20px; bottom: 30px; }
}

@media (max-width: 820px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        max-width: 82vw;
        background: #ffffff;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 40px;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.35s ease;
        z-index: 1000;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu a {
        display: block;
        width: 100%;
        font-size: 15px;
        color: #1a1a1a;
        padding: 16px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        text-transform: uppercase;
    }
    .burger { display: flex; }
    .header-phones .phone { font-size: 13px; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 32px; line-height: 1.15; letter-spacing: -0.5px; }
    .hero-title .line { padding-left: 0 !important; }
    .hero-sub { font-size: 14px; }
    .hero-features { flex-direction: column; }
    .hero-features .feature-item { width: 100%; }
    .hero-arrow { right: 14px; bottom: 20px; width: 52px; height: 52px; }
    .hero-inner { min-height: 0; }
    .section { padding: 55px 0; }
    .section-title { font-size: 26px; }
    .works-grid { grid-template-columns: 1fr; gap: 16px; }
    .about-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .services-4-grid { grid-template-columns: 1fr; }
    .tasks-grid { grid-template-columns: 1fr; }
    .about-us-grid { grid-template-columns: 1fr; }
    .why-popular-grid { grid-template-columns: 1fr; }
    .why-popular-stats { grid-template-columns: 1fr; }
    .why-services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-right .btn-cta { display: none; }
    .hero-address { font-size: 10px; }
}

/* Попап адаптив */
@media (max-width: 768px) {
    .popup-slider { height: 45vh; min-height: 220px; }
    .popup-nav { width: 42px; height: 42px; }
    .popup-nav svg { width: 18px; height: 18px; }
    .popup-prev { left: 6px; }
    .popup-next { right: 6px; }
    .popup-title { font-size: 14px; }
    .popup-thumbs img { width: 52px; height: 40px; }
    .popup-close { top: 0; right: 0; }
}

@media (max-width: 480px) {
    .popup-content { padding: 10px; }
    .popup-slider { height: 38vh; }
    .popup-thumbs img { width: 44px; height: 34px; }
}