/* Основни стилове за адаптивния PHP сайт за ремонт на покриви. */
:root { --red: #a83b24; --dark: #1e2528; --cream: #f5f1eb; --text: #3c4549; --line: #ded8d0; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 16px/1.65 Arial, Helvetica, sans-serif; background: #fff; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--dark); line-height: 1.16; }
h1 { font-size: clamp(2.35rem, 5vw, 4.75rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: relative; z-index: 10; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--dark); font-size: .83rem; font-weight: 800; line-height: 1; letter-spacing: .09em; }
.brand strong { color: var(--red); font-size: 1.2rem; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--red); clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%); font-size: 1.45rem; }
.main-nav { display: flex; margin-left: auto; gap: 23px; }
.main-nav a { text-decoration: none; font-size: .93rem; font-weight: 700; }
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.header-phone, .footer-phone { color: var(--red); text-decoration: none; font-weight: 800; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; border: 0; color: var(--red); background: transparent; font-size: 1.6rem; cursor: pointer; }
.hero { position: relative; min-height: 590px; display: flex; align-items: center; color: #fff; background: center/cover url('../images/hero-pokrivi.jpg'); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 22, 27, .88) 0%, rgba(12, 22, 27, .66) 40%, rgba(12, 22, 27, .04) 76%); }
.hero-content { position: relative; max-width: 780px; padding: 82px 0; }
.hero h1, .hero p { color: #fff; }
.hero h1 { max-width: 660px; margin-bottom: 18px; }
.hero-content > p:not(.eyebrow) { max-width: 620px; font-size: 1.15rem; }
.eyebrow { margin-bottom: 12px; color: #f2c3ae !important; font-size: .76rem; font-weight: 800; letter-spacing: .15em; }
.eyebrow.red { color: var(--red) !important; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-block; padding: 13px 22px; border: 1px solid transparent; text-decoration: none; font-weight: 800; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--red); }
.button-primary:hover { background: #872a18; }
.button-light { color: #fff; border-color: rgba(255,255,255,.8); }
.trust-strip { background: var(--dark); color: #fff; }
.trust-grid { min-height: 82px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; text-align: center; font-weight: 700; }
.trust-grid strong { color: #ed856a; margin-right: 7px; }
.section { padding: 85px 0; }
.section-heading { max-width: 790px; margin: 0 auto 42px; text-align: center; }
.section-heading.compact { margin-left: 0; text-align: left; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { padding: 27px; border: 1px solid var(--line); background: #fff; box-shadow: 0 9px 25px rgba(40, 34, 25, .04); }
.service-card p { margin-bottom: 0; font-size: .95rem; }
.service-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; color: #fff; background: var(--red); font-size: 1.3rem; font-weight: bold; }
.process-section { padding: 75px 0; background: var(--cream); }
.process-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.steps { padding: 0; margin: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid #d8d0c5; font-weight: 700; }
.steps strong { color: var(--red); font-size: 1.5rem; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.preview-grid img { width: 100%; height: 245px; display: block; object-fit: cover; }
.text-link { display: inline-block; margin-top: 25px; color: var(--red); font-weight: 800; }
.cta-section { padding: 55px 0; background: var(--dark); color: #fff; }
.cta-section h2, .cta-section p { color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-inner h2 { margin-bottom: 0; }
.page-hero { padding: 85px 0; color: #fff; background: linear-gradient(110deg, #732718, #bd593a); }
.page-hero h1, .page-hero p { max-width: 740px; color: #fff; }
.page-hero .eyebrow { color: #ffddce !important; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: center; }
.rounded-image { width: 100%; min-height: 350px; object-fit: cover; border-radius: 3px; }
.soft-bg { background: var(--cream); }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 35px; }
.check-grid p { margin: 0; padding: 11px 0; border-bottom: 1px solid #ddd4ca; font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { display: block; overflow: hidden; background: var(--dark); }
.gallery-item img { display: block; width: 100%; height: 250px; object-fit: cover; transition: transform .35s, opacity .35s; }
.gallery-item:hover img { transform: scale(1.06); opacity: .82; }
.lightbox { position: fixed; z-index: 30; inset: 0; display: none; place-items: center; padding: 30px; background: rgba(0,0,0,.88); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1050px, 94vw); max-height: 88vh; }
.lightbox-close { position: fixed; top: 15px; right: 24px; border: 0; color: #fff; background: transparent; font-size: 2.8rem; cursor: pointer; }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.contact-card, .contact-form { padding: 38px; background: var(--cream); }
.contact-form { background: #fff; border: 1px solid var(--line); }
.contact-form label { display: block; margin: 15px 0; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 6px; padding: 11px; border: 1px solid #cac3ba; font: inherit; }
.big-phone { display: block; margin: 12px 0; color: var(--red); font-size: 2rem; font-weight: 800; text-decoration: none; }
.site-footer { color: #e5e5e5; background: #151b1d; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 55px; padding: 55px 0 35px; }
.footer-grid h3 { color: #fff; font-size: 1rem; }
.footer-grid p, .footer-grid li { font-size: .91rem; }
.footer-grid ul { padding: 0; margin: 0; list-style: none; }
.footer-grid li { margin: 6px 0; }
.footer-brand { color: #fff; font-size: 1.3rem; font-weight: 800; letter-spacing: .06em; }
.footer-brand strong { color: #e46d52; }
.footer-bottom { padding: 17px 20px; border-top: 1px solid #303638; color: #99a0a0; text-align: center; font-size: .8rem; }
.call-button { position: fixed; right: 22px; bottom: 22px; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 30px; color: #fff; background: var(--red); box-shadow: 0 8px 20px rgba(0,0,0,.28); text-decoration: none; font-weight: 800; }
@media (max-width: 850px) { .header-inner { min-height: 72px; gap: 13px; } .menu-toggle { display: block; } .header-phone { display: none; } .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 15px 20px 20px; background: #fff; box-shadow: 0 8px 12px rgba(0,0,0,.1); } .main-nav.is-open { display: grid; gap: 14px; } .hero { min-height: 540px; } .service-grid { grid-template-columns: repeat(2, 1fr); } .process-grid, .two-column, .contact-grid { grid-template-columns: 1fr; gap: 35px; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 560px) { .container { width: min(100% - 28px, 1160px); } .hero { min-height: 560px; background-position: 62% center; } .hero-content { padding: 65px 0; } .hero-overlay { background: rgba(12, 22, 27, .74); } .trust-grid, .service-grid, .preview-grid, .gallery-grid, .check-grid, .footer-grid { grid-template-columns: 1fr; } .trust-grid { gap: 10px; padding: 20px 0; } .section { padding: 60px 0; } .preview-grid img { height: 220px; } .gallery-item img { height: 240px; } .cta-inner { display: block; } .cta-inner .button { margin-top: 18px; } .contact-card, .contact-form { padding: 26px; } .call-button span { display: none; } .call-button { width: 52px; height: 52px; justify-content: center; padding: 0; } }
