:root{
  --bg:#fff;--text:#111214;--muted:#6b7077;--line:#e9e9e6;--card:#f6f6f3;--accent:#1677FF;--accent-hover:#0F63D8;--accent-soft:#EAF2FF;--yellow:var(--accent);--yellow-soft:var(--accent-soft);--dark:#151617;--radius:24px;--shell:1180px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}.shell{width:min(var(--shell),calc(100% - 48px));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(0,0,0,.055)}
.header-inner{height:82px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:34px}.brand{display:inline-flex;align-items:center;font-weight:900;font-size:29px;letter-spacing:-1.7px;line-height:1}.brand span{color:var(--yellow)}.custom-logo-link img{display:block;max-height:46px;width:auto}
.nav-list,.mobile-nav-list{list-style:none;margin:0;padding:0}.nav-list{display:flex;justify-content:center;gap:32px;font-size:14px}.nav-list a{color:#303238;transition:.2s}.nav-list a:hover{color:#000}.header-contact{display:flex;align-items:center;gap:22px}.phone-mini{display:flex;gap:10px;align-items:center}.phone-mini a{font-weight:750;font-size:14px}.phone-mini small,.footer-phone small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.phone-icon{width:19px;height:19px;display:grid;place-items:center}.phone-icon svg{width:19px;height:19px;fill:none;stroke:#111;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:50px;padding:0 26px;border-radius:999px;font-weight:800;font-size:14px;transition:transform .2s,background .2s,border-color .2s}.btn:hover{transform:translateY(-1px)}.btn-yellow{background:var(--accent);color:#fff}.btn-yellow:hover{background:var(--accent-hover);color:#fff}.btn-small{min-height:44px;padding-inline:22px}.btn-outline{border:1.4px solid #2f3134;background:#fff}.menu-toggle,.mobile-menu{display:none}

/* Hero */
.hero{border-bottom:1px solid var(--line)}.hero-v2{padding:38px 0 52px}.hero-shell{display:grid;grid-template-columns:minmax(0,.96fr) minmax(430px,1.04fr);gap:42px;align-items:stretch}.hero-copy{padding:50px 0 22px;display:flex;flex-direction:column;justify-content:center}.eyebrow{font-size:11px;letter-spacing:.16em;color:#6d7177;font-weight:800}.hero h1{font-size:clamp(54px,5.5vw,82px);line-height:.97;letter-spacing:-.06em;margin:20px 0 24px;max-width:690px}.hero-copy>p{font-size:18px;line-height:1.6;color:#62676d;max-width:600px;margin:0}.hero-actions{display:flex;align-items:center;gap:28px;margin-top:34px;flex-wrap:wrap}.hero-text-link{font-size:14px;font-weight:750;display:inline-flex;gap:11px;align-items:center}.hero-text-link span{font-size:16px}.hero-points{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:54px;border-top:1px solid var(--line);padding-top:20px}.hero-points>div{min-height:58px;padding-right:22px}.hero-points>div+div{border-left:1px solid var(--line);padding-left:22px}.hero-points strong{display:block;font-size:10px;color:#9b9ea3;letter-spacing:.12em;margin-bottom:8px}.hero-points span{display:block;font-size:12px;line-height:1.35;color:#3b3e42;font-weight:650}
.hero-visual-card{position:relative;border-radius:30px;overflow:hidden;min-height:610px;background:#ececea}.hero-visual{position:absolute;inset:0;background-size:cover;background-position:center}.hero-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02) 45%,rgba(0,0,0,.38) 100%)}.hero-note-card{position:absolute;left:26px;right:26px;bottom:24px;z-index:2;display:flex;align-items:flex-start;gap:12px;color:#fff;max-width:320px}.hero-note-card p{font-size:13px;line-height:1.45;letter-spacing:.07em;font-weight:800;margin:0}.hero-note-dot{width:9px;height:9px;background:var(--yellow);border-radius:50%;margin-top:5px;box-shadow:0 0 0 5px rgba(22,119,255,.18)}

.section{padding:82px 0}.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:32px}.simple-head h2{font-size:42px;letter-spacing:-.04em;margin:0}.section-head>a{font-size:14px;color:#555a60;font-weight:650}.section-head>a span{margin-left:7px}
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.service-card{position:relative;min-height:306px;background:linear-gradient(145deg,#fafaf9,#f2f2ef);border:1px solid #eeeeeb;border-radius:20px;padding:27px 27px 26px;display:flex;flex-direction:column;box-shadow:0 10px 30px rgba(0,0,0,.025);transition:.25s}.service-card:hover{transform:translateY(-4px);box-shadow:0 18px 46px rgba(0,0,0,.065);border-color:#e4e4df}.service-icon{margin-bottom:27px}.realistic-icon{width:58px;height:58px;border-radius:16px;background:#fff;border:1px solid #e7e7e2;display:grid;place-items:center;box-shadow:0 8px 22px rgba(0,0,0,.04)}.realistic-icon svg{width:36px;height:36px;fill:none;stroke:#17191b;stroke-width:2.15;stroke-linecap:round;stroke-linejoin:round}.service-card:nth-child(2) .realistic-icon,.service-card:nth-child(3) .realistic-icon{background:var(--yellow-soft)}.service-card h3{font-size:21px;line-height:1.14;letter-spacing:-.025em;margin:0 0 14px}.service-card p{color:#696e74;line-height:1.58;font-size:14px;margin:0 0 24px}.circle-arrow{margin-top:auto;width:38px;height:38px;border:1px solid #bbbdbf;border-radius:50%;display:grid;place-items:center;font-size:18px;transition:.2s}.circle-arrow:hover{border-color:#111;transform:translateX(2px)}

.why{width:min(1440px,100%);margin:0 auto 12px;display:grid;grid-template-columns:.88fr 1.12fr;min-height:480px;background:var(--dark);color:#fff;border-radius:26px;overflow:hidden}.why-copy{padding:66px 58px}.why h2{font-size:46px;line-height:1.02;letter-spacing:-.045em;margin:0 0 18px}.why-lead{max-width:520px;color:#bfc2c4;line-height:1.6;font-size:15px;margin:0 0 28px}.why ul{list-style:none;padding:0;margin:0}.why li{margin:13px 0;color:#ededeb;font-size:15px}.why li:before{content:"";display:inline-block;width:8px;height:8px;background:var(--yellow);border-radius:50%;margin-right:14px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:42px}.stats strong{font-size:31px;display:block}.stats span{display:block;color:#b9bbbe;font-size:12px;margin-top:5px}.why-image{background-size:cover;background-position:center;min-height:100%;position:relative}.why-image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(21,22,23,.22),transparent 28%)}

.work-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.work-card{border:1px solid #e5e5e2;border-radius:18px;overflow:hidden;background:#f7f7f5;transition:.25s}.work-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(0,0,0,.055)}.work-image{display:block;height:205px;background-size:cover;background-position:center;background-color:#ddd}.work-body{display:flex;justify-content:space-between;gap:18px;padding:19px}.work-body h3{font-size:18px;margin:0 0 7px}.work-body p{margin:0;color:#666b70;font-size:13px;line-height:1.45}

.footer-cta{margin-top:54px;background:linear-gradient(135deg,#f7f7f4,#fbfbfa);border:1px solid #ecece8;border-radius:18px;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;gap:24px}.footer-cta h2{font-size:32px;margin:0 0 5px;letter-spacing:-.03em}.footer-cta p{margin:0;color:#6c7076}.footer-actions{display:flex;gap:10px;align-items:center}.social-btn{width:48px;height:48px;border-radius:50%;border:1px solid #d5d6d2;display:grid;place-items:center;font-weight:800;font-size:12px;background:#fff}.footer-bottom{display:grid;grid-template-columns:1.5fr 1fr 1fr;align-items:end;gap:30px;padding:52px 0 38px}.footer-bottom p{margin:10px 0 0;color:#767a80;font-size:12px}.footer-phone a{font-weight:800}.footer-phone .footer-address{margin-top:7px;max-width:270px;line-height:1.35;color:#5f646a}.copyright{text-align:right;color:#85888d;font-size:12px}
.content-shell,.article-shell{padding:70px 0 90px}.content-head{margin-bottom:30px}.content-head h1,.article-shell h1{font-size:clamp(42px,6vw,72px);line-height:1;letter-spacing:-.05em;margin:10px 0 0}.posts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.post-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fafaf8}.post-card img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.post-card-body{padding:20px}.post-card-body h2{font-size:22px;margin:0 0 10px}.post-card-body p{color:var(--muted);line-height:1.55}.text-link{font-weight:800}.article-shell{max-width:920px}.article-shell header{margin-bottom:36px}.article-shell .lead{font-size:21px;color:var(--muted);line-height:1.5}.article-hero{width:100%;border-radius:20px;margin-bottom:34px}.article-content{font-size:18px;line-height:1.75}.article-content h2,.article-content h3{letter-spacing:-.025em}.article-content a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.mobile-contact-line{display:none}


@media (min-width:821px){
  .hero-v3-copy>p{font-size:16px;line-height:1.5}
  .hero-v3-stats strong{font-size:26px}
}
@media (max-width:1100px){.header-contact .phone-mini{display:none}.nav-list{gap:22px}.hero-shell{grid-template-columns:1fr .94fr;gap:28px}.hero h1{font-size:58px}.hero-visual-card{min-height:560px}.service-grid{grid-template-columns:repeat(2,1fr)}.why{border-radius:0}.work-image{height:175px}}
@media (max-width:820px){.shell{width:min(100% - 32px,var(--shell))}.site-header{position:sticky}.header-inner{height:70px;grid-template-columns:1fr auto}.desktop-nav,.header-contact{display:none}.brand{font-size:25px}.menu-toggle{display:flex;width:42px;height:42px;border:0;background:transparent;flex-direction:column;justify-content:center;gap:7px;padding:8px}.menu-toggle span{height:2px;background:#111;width:100%;transition:.2s}.menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(4.5px) rotate(45deg)}.menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-4.5px) rotate(-45deg)}.mobile-menu{display:block;position:absolute;top:70px;left:0;right:0;background:#fff;border-top:1px solid var(--line);padding:22px 16px 28px;box-shadow:0 18px 30px rgba(0,0,0,.08)}.mobile-menu[hidden]{display:none}.mobile-nav-list{display:grid;gap:0;margin-bottom:16px}.mobile-nav-list li{border-bottom:1px solid var(--line)}.mobile-nav-list a{display:block;padding:15px 6px;font-size:19px;font-weight:750}.mobile-contact-line{display:flex;justify-content:space-between;gap:18px;padding:8px 6px 20px;color:#5f646a;font-size:12px}.mobile-contact-line a{font-weight:800;color:#111}.mobile-menu .btn{width:100%}
.hero-v2{padding:20px 0 42px}.hero-shell{display:flex;flex-direction:column;gap:0}.hero-copy{order:2;padding:38px 0 0}.hero-visual-card{order:1;min-height:410px;border-radius:24px}.hero h1{font-size:50px;max-width:650px}.hero-copy>p{font-size:17px}.hero-points{margin-top:38px}.section{padding:60px 0}.simple-head h2{font-size:35px}.service-grid{gap:12px}.service-card{min-height:255px}.why{grid-template-columns:1fr;margin:0}.why-copy{padding:46px 24px}.why-image{min-height:330px}.work-grid,.posts-grid{grid-template-columns:1fr}.work-image{height:270px}.footer-cta{flex-direction:column;align-items:flex-start}.footer-actions{flex-wrap:wrap}.footer-bottom{grid-template-columns:1fr 1fr}.copyright{text-align:left;grid-column:1/-1}.article-shell{padding-top:48px}}
@media (max-width:560px){.hero-v2{padding-top:14px}.hero-visual-card{min-height:320px;border-radius:20px}.hero-note-card{left:18px;right:18px;bottom:17px}.hero-note-card p{font-size:11px}.hero h1{font-size:42px}.hero-actions{display:grid;grid-template-columns:1fr;gap:18px}.hero-actions .btn{width:100%}.hero-text-link{justify-content:center}.hero-points{grid-template-columns:1fr;margin-top:32px;padding-top:0;border-top:0}.hero-points>div,.hero-points>div+div{border-left:0;border-top:1px solid var(--line);padding:14px 0;display:grid;grid-template-columns:38px 1fr;align-items:center;min-height:auto}.hero-points strong{margin:0}.hero-points span{font-size:13px}.service-grid{grid-template-columns:1fr}.service-card{min-height:220px}.section-head{align-items:flex-start}.section-head>a{margin-top:8px}.simple-head h2{font-size:31px}.why h2{font-size:37px}.why-copy{padding-top:42px}.stats{gap:10px}.stats strong{font-size:25px}.stats span{font-size:10px}.why-image{min-height:260px}.work-image{height:215px}.footer-actions .btn{width:auto}.footer-cta h2{font-size:27px}.footer-bottom{grid-template-columns:1fr;align-items:start}.content-head h1,.article-shell h1{font-size:43px}.article-content{font-size:16px}.copyright{grid-column:auto}}

/* === AVTODIAG v0.3 — dark hero === */
.home .site-header{position:absolute;top:0;left:0;right:0;background:transparent;border-bottom:1px solid rgba(255,255,255,.10);backdrop-filter:none;color:#fff}
.home .site-header .brand{color:#fff}
.home .site-header .nav-list a{color:rgba(255,255,255,.88)}
.home .site-header .nav-list a:hover{color:#fff}
.home .site-header .phone-mini a{color:#fff}
.home .site-header .phone-mini small{color:rgba(255,255,255,.62)}
.home .site-header .phone-icon svg{stroke:var(--yellow)}
.home .site-header .menu-toggle span{background:#fff}
.home .site-header .custom-logo-link img{filter:none}

.hero-v3{position:relative;isolation:isolate;min-height:585px;padding:0;border:0;background:#0b0e10 var(--hero-image) no-repeat right center;background-size:auto 100%;color:#fff;overflow:hidden}
.hero-v3:before{content:"";position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,#090c0e 0%,rgba(9,12,14,.98) 30%,rgba(9,12,14,.88) 48%,rgba(9,12,14,.26) 75%,rgba(9,12,14,.05) 100%)}
.hero-v3:after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.06) 58%,rgba(0,0,0,.34));pointer-events:none}
.hero-v3-overlay{position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 68% 35%,rgba(22,119,255,.085),transparent 24%);pointer-events:none}
.hero-v3-shell{position:relative;min-height:585px;padding-top:106px;padding-bottom:30px;display:flex;align-items:center}
.hero-v3-copy{width:min(660px,62%);padding-bottom:6px}
.hero-v3 h1{font-size:clamp(50px,4.7vw,68px);line-height:.98;letter-spacing:-.055em;max-width:720px;margin:0 0 15px;color:#fff;text-wrap:balance}
.hero-v3-copy>p{max-width:600px;margin:0;color:rgba(255,255,255,.78);font-size:16px;line-height:1.5}
.hero-v3-actions{display:flex;gap:14px;align-items:center;margin-top:22px}
.hero-v3 .hero-primary{min-width:168px}
.hero-v3 .hero-secondary{min-width:156px;border:1px solid rgba(255,255,255,.42);color:#fff;background:rgba(255,255,255,.03);backdrop-filter:blur(6px)}
.hero-v3 .hero-secondary:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.7)}
.hero-v3-stats{display:grid;grid-template-columns:repeat(3,max-content);gap:0;margin-top:26px}
.hero-v3-stats>div{min-width:150px;padding-right:26px}
.hero-v3-stats>div+div{border-left:1px solid rgba(255,255,255,.20);padding-left:26px}
.hero-v3-stats strong{display:block;font-size:28px;line-height:1;font-weight:850;letter-spacing:-.03em}
.hero-v3-stats span{display:block;margin-top:8px;color:rgba(255,255,255,.63);font-size:11px;line-height:1.35}
.hero-v3-side-note{position:absolute;right:0;bottom:26px;display:grid;gap:8px;width:205px;color:rgba(255,255,255,.46);font-size:9px;letter-spacing:.06em;text-transform:uppercase;text-align:right}
.hero-v3-side-note span{padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.14)}
.hero-scroll{position:absolute;left:0;bottom:14px;display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.46);font-size:10px}
.hero-scroll span{position:relative;width:19px;height:27px;border:1px solid rgba(255,255,255,.62);border-radius:9px}
.hero-scroll span:after{content:"";position:absolute;left:50%;top:5px;width:2px;height:5px;border-radius:2px;background:var(--yellow);transform:translateX(-50%)}

.home .section:first-of-type{padding-top:74px}
.why .stats{display:none}


@media (min-width:821px){
  .hero-v3-copy>p{font-size:16px;line-height:1.5}
  .hero-v3-stats strong{font-size:26px}
}
@media (min-width:821px) and (max-width:1100px){
  .hero-v3{min-height:540px;background-position:70% center;background-size:auto 100%}
  .hero-v3-shell{min-height:540px;padding-top:98px;padding-bottom:24px}
  .hero-v3-copy{width:min(620px,70%)}
  .hero-v3 h1{font-size:54px}
  .hero-v3-side-note{display:none}
}
@media (max-width:820px){
  .home .site-header{position:absolute;background:rgba(7,10,12,.32);backdrop-filter:blur(10px)}
  .home .mobile-menu{background:#111518;border-top-color:rgba(255,255,255,.10);color:#fff}
  .home .mobile-nav-list li{border-color:rgba(255,255,255,.10)}
  .home .mobile-contact-line{color:rgba(255,255,255,.65)}
  .home .mobile-contact-line a{color:#fff}
  .hero-v3{min-height:720px;background-size:auto 100%;background-position:63% center}
  .hero-v3:before{background:linear-gradient(90deg,#080b0d 0%,rgba(8,11,13,.96) 47%,rgba(8,11,13,.62) 75%,rgba(8,11,13,.34) 100%)}
  .hero-v3-shell{min-height:720px;padding-top:128px;padding-bottom:50px;align-items:flex-end}
  .hero-v3-copy{width:100%;padding-bottom:92px}
  .hero-v3 h1{font-size:56px;max-width:620px}
  .hero-v3-copy>p{max-width:540px}
  .hero-scroll{bottom:24px}
}
@media (max-width:560px){
  .hero-v3{min-height:690px;background-position:64% center;background-size:auto 100%}
  .hero-v3:before{background:linear-gradient(90deg,#080b0d 0%,rgba(8,11,13,.95) 58%,rgba(8,11,13,.58) 100%),linear-gradient(0deg,rgba(8,11,13,.82),transparent 48%)}
  .hero-v3-shell{min-height:690px;padding-top:108px;padding-bottom:36px;align-items:flex-end}
  .hero-v3-copy{padding-bottom:62px}
  .hero-v3-kicker{font-size:9px;letter-spacing:.12em}
  .hero-v3 h1{font-size:44px;line-height:1.01;margin-top:17px;margin-bottom:18px}
  .hero-v3-copy>p{font-size:15px;line-height:1.55;max-width:94%}
  .hero-v3-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:26px}
  .hero-v3-actions .btn{min-width:0;width:100%;padding-inline:14px;font-size:12px}
  .hero-v3-stats{grid-template-columns:repeat(3,1fr);width:100%;margin-top:34px}
  .hero-v3-stats>div{min-width:0;padding-right:12px}
  .hero-v3-stats>div+div{padding-left:12px}
  .hero-v3-stats strong{font-size:23px}
  .hero-v3-stats span{font-size:9px;margin-top:6px}
  .hero-scroll{display:none}
}

/* === AVTODIAG v0.7 — finished services + photo gallery === */
.services-section .static-head{margin-bottom:32px}
.service-card{min-height:270px}
.service-card:hover{transform:none;box-shadow:0 10px 30px rgba(0,0,0,.025);border-color:#eeeeeb}
.service-card p{margin-bottom:0}

.gallery-section{padding:10px 0 86px;background:#fff}
.gallery-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:28px}
.gallery-heading h2{font-size:42px;line-height:1;letter-spacing:-.045em;margin:0}
.gallery-heading p{max-width:430px;margin:0;color:var(--muted);font-size:14px;line-height:1.55;text-align:right}
.photo-gallery{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:205px;gap:14px}
.gallery-item{position:relative;display:block;width:100%;height:100%;padding:0;border:0;border-radius:20px;overflow:hidden;background:#e9ebed;cursor:zoom-in;grid-column:span 3;font:inherit;isolation:isolate}
.gallery-item:first-child{grid-column:span 6;grid-row:span 2}
.gallery-item:nth-child(6){grid-column:span 6}
.gallery-item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease,filter .3s ease}
.gallery-item:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 58%,rgba(0,0,0,.16));opacity:.65;transition:opacity .25s;pointer-events:none}
.gallery-item:hover img{transform:scale(1.025)}
.gallery-item:hover:after{opacity:.35}
.gallery-zoom{position:absolute;z-index:2;right:14px;bottom:14px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.92);color:#111;font-size:21px;line-height:1;box-shadow:0 8px 22px rgba(0,0,0,.12);opacity:0;transform:translateY(4px);transition:.22s}
.gallery-item:hover .gallery-zoom,.gallery-item:focus-visible .gallery-zoom{opacity:1;transform:none}
.gallery-item:focus-visible{outline:3px solid rgba(22,119,255,.32);outline-offset:3px}
.photo-gallery-count-1 .gallery-item:first-child{grid-column:1/-1;grid-row:span 2}
.photo-gallery-count-2 .gallery-item:first-child{grid-column:span 8;grid-row:span 2}
.photo-gallery-count-2 .gallery-item:nth-child(2){grid-column:span 4;grid-row:span 2}
.photo-gallery-count-3 .gallery-item:first-child{grid-column:span 7;grid-row:span 2}
.photo-gallery-count-3 .gallery-item:nth-child(n+2){grid-column:span 5}
.photo-gallery-count-4 .gallery-item:first-child{grid-column:span 6;grid-row:span 2}
.photo-gallery-count-4 .gallery-item:nth-child(2),.photo-gallery-count-4 .gallery-item:nth-child(3){grid-column:span 3}
.photo-gallery-count-4 .gallery-item:nth-child(4){grid-column:span 6}

.gallery-lightbox{position:fixed;z-index:9999;inset:0;background:rgba(8,10,12,.94);display:grid;place-items:center;padding:34px}
.gallery-lightbox[hidden]{display:none}
.gallery-lightbox img{display:block;max-width:min(1400px,94vw);max-height:90vh;width:auto;height:auto;border-radius:16px;box-shadow:0 30px 90px rgba(0,0,0,.4)}
.gallery-lightbox-close{position:fixed;right:24px;top:18px;width:48px;height:48px;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:32px;line-height:1;cursor:pointer}
body.gallery-open{overflow:hidden}

@media (max-width:820px){
  .gallery-section{padding:0 0 64px}
  .gallery-heading{display:block;margin-bottom:22px}
  .gallery-heading h2{font-size:35px}
  .gallery-heading p{max-width:520px;text-align:left;margin-top:10px}
  .photo-gallery{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:210px;gap:10px}
  .gallery-item,.gallery-item:nth-child(6){grid-column:span 1;grid-row:span 1}
  .gallery-item:first-child,.photo-gallery-count-1 .gallery-item:first-child,.photo-gallery-count-2 .gallery-item:first-child,.photo-gallery-count-3 .gallery-item:first-child,.photo-gallery-count-4 .gallery-item:first-child{grid-column:1/-1;grid-row:span 2}
  .photo-gallery-count-2 .gallery-item:nth-child(2),.photo-gallery-count-3 .gallery-item:nth-child(n+2),.photo-gallery-count-4 .gallery-item:nth-child(2),.photo-gallery-count-4 .gallery-item:nth-child(3),.photo-gallery-count-4 .gallery-item:nth-child(4){grid-column:span 1;grid-row:span 1}
  .gallery-zoom{opacity:1;transform:none;width:34px;height:34px}
}
@media (max-width:560px){
  .services-section .static-head{margin-bottom:22px}
  .service-card{min-height:0}
  .gallery-heading h2{font-size:31px}
  .gallery-heading p{font-size:13px}
  .photo-gallery{grid-auto-rows:145px;gap:8px}
  .gallery-item{border-radius:15px}
  .gallery-lightbox{padding:16px}
  .gallery-lightbox img{max-width:100%;max-height:82vh;border-radius:12px}
  .gallery-lightbox-close{right:14px;top:12px}
}
