/* Logical mobile screens. Content may grow when text is enlarged or a form/FAQ
   expands: no fixed-height panels, clipped content or nested scrolling. */
@media (max-width: 950px) {
  :root {
    --mobile-header: calc(68px + env(safe-area-inset-top, 0px));
    --screen-height: calc(100vh - var(--mobile-header));
    --screen-pad: clamp(18px, 5vw, 42px);
  }
  @supports (height: 100svh) {
    :root { --screen-height: calc(100svh - var(--mobile-header)); }
  }
  html { scroll-padding-top: var(--mobile-header); scroll-snap-type: y proximity; }
  main { padding-top: var(--mobile-header); }
  .site-header { height: var(--mobile-header); padding-top: env(safe-area-inset-top, 0px); }
  .site-header nav, .site-header.open nav {
    top: 100%; inset-block-start: 100%; height: calc(100dvh - var(--mobile-header));
    min-height: 0;
  }
  .section { scroll-margin-top: 0; }
  .hero, .services > .section-heading, .services .service-card,
  .object-section, .prices > .price-top, .prices .price-card,
  .process > .section-heading, .process > .steps, .geography, .faq,
  .contact-copy, .lead-form, footer {
    min-height: var(--screen-height);
    height: auto;
    margin: 0;
    padding: 24px var(--screen-pad);
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    overflow: visible;
    border-radius: 0;
    clip-path: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .services, .prices, .process, .contact { display: block; padding: 0; }
  .services .service-grid, .prices .price-grid {
    display: block; margin: 0; padding: 0; overflow: visible;
    scroll-snap-type: none;
  }
  .services .service-card, .services .service-card:last-child,
  .prices .price-card, .prices .price-card.accent {
    width: 100%; min-width: 0; max-width: none;
    min-height: var(--screen-height);
    padding: 24px var(--screen-pad);
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    flex: none; transform: none; box-shadow: none;
  }
  .service-card::before { display: none; }
  .eyebrow, .process .section-heading .eyebrow {
    margin: 0 0 14px; font-size: 10px; line-height: 1.5; letter-spacing: .12em;
  }
  .eyebrow span { flex: 0 0 24px; width: 24px; }
  .section h2, .process .section-heading h2 {
    font-size: clamp(30px, 8vw, 48px); line-height: 1.05; margin: 0 0 20px;
  }
  .section-heading > p:not(.eyebrow), .price-top > p,
  .geo-copy > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) {
    max-width: 620px; margin: 0; font-size: 14px; line-height: 1.6; color: #abbabb;
  }
  .screen-next {
    display: inline-flex; align-items: center; align-self: flex-start;
    min-height: 48px; margin-top: 24px; gap: 12px;
    color: var(--cyan); font-size: 13px; font-weight: 700;
  }
  .hero { align-items: stretch; padding-block: 22px; isolation: isolate; }
  .hero-content { display: block; max-width: 660px; width: 100%; }
  .hero-image {
    position: absolute; inset: 0; width: auto; height: auto;
    margin: 0; border: 0; border-radius: 0; clip-path: none; z-index: -3;
    background-image: linear-gradient(90deg, #071014f2, #071014ba), url('assets/master-sergiy-hero.jpg');
    background-position: 65% center; background-size: cover;
  }
  .hero h1 { font-size: clamp(32px, 8.3vw, 58px); line-height: 1.02; margin: 0 0 16px; }
  .hero-content > .eyebrow { height: auto; white-space: normal; margin: 0 0 14px; }
  .hero-content > h1 { margin: 0 0 16px; }
  .hero-title-service { display: inline; font-size: inherit; letter-spacing: -.025em; }
  .mobile-title-break { display: none; }
  .hero-content > .hero-lead { font-size: 14px; line-height: 1.55; margin: 0; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; }
  .hero-actions .button { min-height: 48px; padding: 10px; gap: 8px; font-size: 10px; letter-spacing: .04em; }
  .hero-trust { display: flex; flex-wrap: nowrap; gap: 10px; justify-content: space-between; }
  .hero-trust li { gap: 6px; }
  .hero-trust strong { font-size: 21px; }
  .hero-trust span { font-size: 9px; letter-spacing: .02em; }
  .services .service-icon { height: 42px; flex-shrink: 0; margin: 0; }
  .services .camera-icon { height: 34px; }
  .services .card-num { margin: 22px 0 12px; font-size: 11px; }
  .services .service-card h3, .services .service-card.featured h3 {
    font-size: clamp(26px, 7.8vw, 40px); margin: 0 0 14px; white-space: normal; line-height: 1.1;
  }
  .services .service-card p { font-size: 14px; line-height: 1.6; margin: 0; color: #abbabb; max-width: 620px; }
  .services .service-card ul { margin: 16px 0; }
  .services .service-card li { font-size: 13px; line-height: 1.5; padding: 8px 0; }
  .services .service-card > a {
    position: static; display: flex; align-items: center; min-height: 48px;
    margin-top: 8px; font-size: 12px; letter-spacing: .04em;
  }
  .object-copy { position: static; }
  .object-row { grid-template-columns: 24px 1fr 16px; gap: 6px 10px; padding: 14px 0; }
  .object-row h3 { font-size: 21px; line-height: 1.1; }
  .object-row p { display: block; grid-column: 2; grid-row: 2; margin: 0; font-size: 12px; line-height: 1.4; }
  .object-row b { grid-column: 3; grid-row: 1 / 3; }
  .price-top .price-note { margin-top: 24px; text-align: left; font-size: 12px; line-height: 1.5; color: #a2b4b5; }
  .price-card > span { font-size: 11px; }
  .price-card h3 { font-size: 38px; margin: 18px 0 8px; }
  .price-card p { font-size: 14px; margin: 0; }
  .price-card strong { font-size: 40px; margin: 22px 0; }
  .price-card ul { font-size: 14px; line-height: 1.6; margin: 0; }
  .price-card li { margin: 10px 0; }
  .price-card a { min-height: 48px; margin-top: 20px; font-size: 12px; }
  .popular { top: 14px; right: var(--screen-pad); font-size: 10px; }
  .process .steps { border-bottom: 1px solid var(--line); }
  .process .steps li { grid-template-columns: 30px 1fr; gap: 8px; padding: 12px 0; }
  .process .steps li > span { font-size: 20px; }
  .process .steps h3 { font-size: 22px; line-height: 1.1; margin: 0 0 5px; }
  .process .steps p { font-size: 13px; line-height: 1.45; color: #abbabb; }
  .geography { position: relative; isolation: isolate; }
  .map-rings {
    position: absolute; z-index: -1; right: -80px; bottom: 8%; opacity: .2;
    width: 260px; height: 260px; max-width: none; max-height: none;
  }
  .map-rings b { display: none; }
  .geography { overflow: clip; }
  .geo-tags { gap: 8px; margin-top: 24px; }
  .geo-tags span { font-size: 12px; padding: 8px 10px; }
  .faq .section-heading { display: block; margin: 0; }
  .faq-list { margin-top: 4px; }
  .faq-list details { padding: 14px; }
  .faq-list summary { font-size: 20px; line-height: 1.2; min-height: 44px; padding-right: 20px; position: relative; }
  .faq-list summary::after { position: absolute; right: 0; top: 0; }
  .faq-list p { font-size: 14px; line-height: 1.55; margin-top: 12px; }
  .master-phone { font-size: clamp(25px, 7vw, 36px); margin: 24px 0 14px; }
  .master-phone small { font-size: 10px; }
  .contact-line { gap: 14px; font-size: 12px; line-height: 1.5; padding: 12px 0; }
  .contact-line b { max-width: 62%; text-align: right; }
  .contact-copy > .button { margin-top: 20px; align-self: flex-start; }
  .lead-form { scroll-margin-top: 0; }
  .lead-form label { margin-bottom: 12px; font-size: 11px; letter-spacing: .06em; }
  .lead-form input, .lead-form select, .lead-form textarea { font-size: 16px; min-height: 44px; padding: 10px 0; }
  .lead-form textarea { min-height: 62px; height: 62px; }
  .lead-form button { min-height: 48px; margin: 0; }
  .lead-form .consent { font-size: 11px; line-height: 1.45; margin: 12px 0 0; gap: 10px; grid-template-columns: 24px 1fr; }
  .lead-form .consent input { width: 22px; height: 22px; min-height: 0; }
  .form-status { margin: 8px 0 0; min-height: 16px; font-size: 12px; }
  footer { gap: 24px; align-items: flex-start; font-size: 12px; line-height: 1.8; }
  footer p { margin: 0; max-width: 580px; }
  footer > a:last-child { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 950px) and (max-height: 640px) {
  .hero .eyebrow { font-size: 9px; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(30px, 8vw, 46px); margin-bottom: 12px; }
  .hero-actions { margin: 16px 0; }
  .object-section h2 { font-size: 30px; margin-bottom: 14px; }
  .object-row { padding-block: 10px; }
  .process .steps li { padding-block: 9px; }
  .lead-form { padding-block: 16px; }
  .lead-form label { margin-bottom: 8px; }
}

/* Short landscape windows and zoom must remain freely scrollable. */
@media (max-width: 950px) and (max-height: 450px) {
  html { scroll-snap-type: none; }
  .hero h1 { font-size: 34px; }
  .hero-content { max-width: 720px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; scroll-behavior: auto; }
}

/* Preserve readable word breaks and screen budgets on compact portrait phones. */
@media(max-width:650px){
  .hero-title-service .mobile-title-break{display:block}
}
@media(max-width:370px) and (min-height:451px) and (max-height:640px){
  .object-section h2,.contact-copy h2{font-size:26px;line-height:1.05;margin-bottom:14px}
  .object-row h3{font-size:18px}
  .object-row{padding-block:9px}
  .contact-copy{padding-block:18px}
  .contact-copy>.eyebrow{margin-bottom:10px}
  .contact-copy .master-phone{margin:16px 0 8px}
  .contact-copy .contact-line{padding-block:10px}
  .contact-copy>.button{margin-top:14px;min-height:48px}
}

@media(max-width:950px){
  .hero-content,.section-heading>*,.price-top>*,.geo-copy,.contact-copy>*,.site-header .brand>span{min-width:0;max-width:100%}
  h1,h2,h3,.eyebrow,.brand b,.brand small,.contact-line b{overflow-wrap:anywhere}
  .site-header .brand b{line-height:1.15}
}
@media(max-width:950px){
  .lead-form label,.lead-form input,.lead-form select,.lead-form textarea{min-width:0;width:100%;max-width:100%}
  .hero-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-actions .button{min-width:0;overflow-wrap:anywhere}
  .hero-trust{flex-wrap:wrap}
  .hero-trust li{min-width:0;flex:1}
  .hero-trust span,.master-phone .phone-value{min-width:0;overflow-wrap:anywhere}
}

/* Native horizontal carousels: one card per mobile screen. */
.carousel-hint{display:none}
@media(max-width:950px){
  .services .service-grid,.prices .price-grid{
    display:flex;align-items:stretch;gap:0;width:100%;max-width:100%;
    margin:0;padding:0;overflow-x:auto;overflow-y:hidden;
    scroll-snap-type:x mandatory;scroll-padding:0;
    scroll-snap-align:start;overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
  }
  .services .service-grid::-webkit-scrollbar,.prices .price-grid::-webkit-scrollbar{display:none}
  .services .service-card,.services .service-card:last-child,
  .prices .price-card,.prices .price-card.accent{
    flex:0 0 100%;width:100%;min-width:0;max-width:100%;
    scroll-snap-align:start;scroll-snap-stop:always;
    border-right:1px solid var(--line);
  }
  .services .section-heading .carousel-hint,.prices .price-top .carousel-hint{
    display:block;margin:12px 0 0;color:#a2b4b5;font-size:12px;line-height:1.5;
  }
}

/* Keep the process title and all five steps on the same screen. */
@media(max-width:950px){
  .process{
    display:flex;flex-direction:column;justify-content:center;gap:0;
    min-height:var(--screen-height);padding:24px var(--screen-pad);
    scroll-snap-align:start;border-bottom:1px solid var(--line);
  }
  .process>.section-heading,.process>.steps{
    min-height:0;height:auto;padding:0;margin:0;border:0;scroll-snap-align:none;
  }
  .process .section-heading h2{font-size:clamp(28px,7vw,40px);margin:0 0 16px;line-height:1.1}
  .process .steps{border-bottom:1px solid var(--line)}
}
@media(max-width:950px) and (max-height:640px){
  .process{padding-block:16px}
  .process .section-heading h2{font-size:28px;margin-bottom:12px}
  .process .steps li{padding-block:7px}
  .process .steps h3{font-size:18px;margin-bottom:3px;line-height:1.1}
  .process .steps p{font-size:13px;line-height:1.4}
}

/* Compact mobile content and direct messenger contacts. */
.mobile-price-note,.footer-geography{display:none}
.contact{grid-template-columns:1fr}
.contact-copy{max-width:760px}
.messenger-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.messenger-actions .button{min-height:48px}
.max-contact-status{font-size:12px;line-height:1.45;color:#a2b4b5;margin:10px 0 0}
@media(max-width:950px){
  .services>.section-heading,.object-section,.prices>.price-top,main>.geography{display:none}
  .prices .price-card .mobile-price-note{display:block;font-size:12px;line-height:1.45;color:#abbabb;margin:14px 0 0}
  .prices .price-card strong{margin:16px 0}
  .prices .price-card a{margin-top:14px}
  .contact-copy{max-width:none;padding-block:20px}
  .contact-copy h2{font-size:clamp(26px,7vw,38px);margin-bottom:14px}
  .contact-copy>.eyebrow{display:none}
  .contact-copy .master-phone{margin:18px 0 10px}
  .contact-copy .contact-line{padding-block:9px}
  .messenger-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:10px;margin-top:16px}
  .messenger-actions .button{width:100%;min-width:0;font-size:11px;padding:10px;gap:8px;letter-spacing:.03em}
  .contact-copy>.max-contact-status{font-size:12px;line-height:1.4;margin-top:10px}
  .footer-geography{display:block;max-width:620px}
  .footer-geography h2{font-size:clamp(26px,7vw,38px);line-height:1.1;margin:0 0 16px}
  .footer-geography p{font-size:14px;line-height:1.6;margin:0 0 12px;overflow-wrap:anywhere}
  footer{gap:20px}
  footer p,footer a{overflow-wrap:anywhere;max-width:100%}
}
@media(max-width:370px) and (max-height:640px){
  .prices .price-card,.prices .price-card.accent{padding-block:18px}
  .price-card h3{font-size:34px;margin-top:12px}
  .price-card li{margin-block:7px}
  .prices .price-card strong{font-size:36px;margin-block:14px}
}

@media(max-width:950px){
  .footer-geography{text-transform:none;letter-spacing:normal;color:#abbabb}
  .footer-geography h2{color:var(--cream)}
}

/* Balance the process heading within its column and above the mobile steps. */
.process > .section-heading { align-self: center; justify-self: stretch; margin: 0; text-align: center; }
.process .section-heading h2 { max-width: 12em; margin-inline: auto; text-wrap: balance; }
@media (max-width: 950px) {
  .process > .section-heading { width: 100%; }
  .process .section-heading h2 { margin-bottom: 24px; }
}
@media (max-width: 950px) and (max-height: 640px) {
  .process .section-heading h2 { margin-bottom: 16px; }
}
