/* Visual polish layer for sferakomforta.ru */

@media (min-width: 761px) {
  body {
    text-rendering: optimizeLegibility;
  }

  .service-list,
  .selling-grid,
  .choice-grid {
    gap: 12px;
    border: 0 !important;
    background: transparent !important;
  }

  .service-item,
  .selling-card,
  .choice-card {
    border: 0 !important;
    background: var(--bg2);
  }

  .choice-card,
  .service-item,
  .selling-card {
    border-radius: 6px;
  }

  .direction-grid {
    overflow: hidden;
    border-radius: 6px;
  }

  .gallery img,
  .split img,
  .wide,
  .hidden-main,
  .hidden-strip img {
    border-radius: 4px;
  }

  .dark-gallery img,
  .detail-row img {
    background: transparent !important;
    border-radius: 4px;
  }
}

@media (max-width: 980px) {
  .facts {
    border: 0 !important;
    gap: 10px;
    background: transparent;
  }

  .fact {
    border: 0 !important;
    border-left: 2px solid var(--gold) !important;
    background: rgba(255, 255, 255, .34) !important;
    border-radius: 0 6px 6px 0;
  }

  .service-list,
  .selling-grid,
  .choice-grid {
    border: 0 !important;
    gap: 12px;
    background: transparent !important;
  }

  .service-item,
  .selling-card,
  .choice-card {
    border: 0 !important;
    border-radius: 6px;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding-left: 22px;
    padding-right: 22px;
  }

  .topbar-in {
    height: 60px;
  }

  .nav-links {
    top: 60px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero {
    min-height: 560px !important;
    height: 88vh !important;
  }

  .hero-img {
    transform: none !important;
  }

  .hero-in {
    padding-bottom: 52px !important;
  }

  .hero h1 {
    font-size: 42px !important;
    line-height: 1.04;
  }

  .hero p {
    font-size: 18px !important;
    line-height: 1.5;
  }

  .hero-actions,
  .launch-note,
  .order-box {
    gap: 14px;
  }

  .cue {
    display: none;
  }

  .direction-switch {
    padding-top: 14px !important;
    padding-bottom: 4px !important;
  }

  .direction-grid,
  .choice-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 10px;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .direction-link,
  .choice-card {
    border: 0 !important;
    border-left: 2px solid var(--gold) !important;
    border-radius: 0 6px 6px 0;
    padding: 18px 18px 19px !important;
    background: var(--bg2);
  }

  .direction-link.active,
  .choice-card.active {
    border-left-color: var(--gold2) !important;
  }

  .intro {
    padding-top: 62px !important;
    padding-bottom: 38px !important;
  }

  .intro-grid {
    gap: 28px !important;
  }

  .intro h2,
  .finish h2,
  .choice-head h2 {
    font-size: 36px !important;
  }

  .intro p,
  .finish p,
  .choice-head p,
  .section-h p {
    font-size: 16.5px !important;
  }

  .facts {
    gap: 8px !important;
  }

  .fact {
    min-height: 0 !important;
    padding: 13px 0 13px 16px !important;
    grid-template-columns: 34px 1fr !important;
    background: transparent !important;
  }

  .fact b {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  .fact span {
    font-size: 15.5px !important;
  }

  .services,
  .selling-points {
    padding-top: 54px !important;
  }

  .section-h {
    margin: 62px 0 18px !important;
    gap: 10px !important;
  }

  .section-h h2 {
    font-size: 34px !important;
  }

  .service-list,
  .selling-grid {
    gap: 10px !important;
  }

  .service-item,
  .selling-card {
    padding: 20px 18px !important;
    background: rgba(255, 255, 255, .50) !important;
  }

  .service-item h3,
  .selling-card h3 {
    font-size: 22px !important;
  }

  .launch-note {
    border: 0 !important;
    border-left: 2px solid var(--gold) !important;
    border-radius: 0 6px 6px 0;
    padding: 18px !important;
    background: rgba(255, 255, 255, .50) !important;
  }

  .order-flow {
    padding-top: 30px !important;
  }

  .order-box {
    border-radius: 6px;
    padding: 26px 20px !important;
  }

  .order-steps {
    gap: 8px !important;
  }

  .order-steps div {
    border: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, .26) !important;
    padding: 10px 0 10px 14px !important;
  }

  .wide,
  .split img,
  .gallery img,
  .gallery.four img,
  .hidden-main,
  .hidden-strip img {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4;
    object-fit: cover !important;
    border-radius: 6px;
  }

  .wide {
    width: calc(100% - 44px) !important;
    margin: 0 auto;
  }

  .split {
    gap: 0 !important;
  }

  .copy {
    padding: 30px 22px !important;
    border-radius: 0 0 6px 6px;
  }

  .copy h3 {
    font-size: 30px !important;
  }

  .copy p,
  .alist li {
    font-size: 16.5px !important;
  }

  .gallery,
  .gallery.four,
  .dark-gallery,
  .detail-row,
  .hidden-strip {
    gap: 10px !important;
  }

  .caption {
    margin-top: 10px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    font-size: 14px !important;
  }

  .dark-band {
    margin-top: 70px !important;
    padding: 58px 0 !important;
  }

  .dark-gallery img,
  .detail-row img {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: contain !important;
    background: transparent !important;
    border-radius: 6px;
  }

  .hidden-function {
    padding-top: 68px !important;
  }

  .hidden-intro {
    gap: 0 !important;
  }

  .hidden-main {
    order: -1;
    border-radius: 6px 6px 0 0;
  }

  .hidden-copy {
    border-radius: 0 0 6px 6px;
  }

  .finish {
    padding: 72px 0 74px !important;
  }

  .faq-section {
    padding-bottom: 48px !important;
  }

  .faq-list summary {
    font-size: 18px !important;
  }

  .bottom-choice {
    padding-bottom: 52px !important;
  }

  .form-sec {
    padding: 72px 0 84px !important;
  }

  .form-title {
    font-size: 34px !important;
  }

  .contacts {
    line-height: 1.8;
  }

  .contacts a {
    white-space: nowrap;
  }

  /* Dark main page mobile refinements */
  .materials {
    border: 0 !important;
    gap: 8px;
    margin-top: 34px !important;
  }

  .mat {
    flex: 1 1 100% !important;
    border: 0 !important;
    border-left: 2px solid var(--gold) !important;
    border-radius: 0 6px 6px 0;
    padding: 18px 18px !important;
    background: rgba(255, 255, 255, .04);
    text-align: left !important;
  }

  .duo {
    gap: 10px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .duo img {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
  }

  .full {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}


/* Mobile gallery final override */
@media (max-width: 760px) {
  .gallery.four {
    grid-template-columns: 1fr !important;
  }

  .dark-gallery img,
  .detail-row img {
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
  }
}

/* Rhythm: visual proof block between text sections */
.proof-strip{
  padding:54px 0 24px;
}
.proof-layout{
  display:grid;
  grid-template-columns:.92fr 1.08fr;
  gap:14px;
  align-items:stretch;
}
.proof-photo img{
  width:100%;
  height:100%;
  min-height:520px;
  object-fit:cover;
  display:block;
  border-radius:6px;
  filter:brightness(.98);
}
.proof-copy{
  background:var(--bg2);
  padding:54px 58px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-radius:6px;
}
.proof-copy h2{
  font-size:42px;
  line-height:1.1;
  font-weight:400;
  margin:14px 0 16px;
}
.proof-copy p{
  color:#544d43;
  font-size:18px;
  max-width:650px;
}
.proof-points{
  display:grid;
  gap:12px;
  margin-top:24px;
}
.proof-point{
  border-left:2px solid var(--gold);
  padding:10px 0 11px 18px;
}
.proof-point b{
  display:block;
  font-size:22px;
  line-height:1.15;
  font-weight:400;
}
.proof-point span{
  display:block;
  margin-top:5px;
  color:var(--mut);
  font-size:16px;
  line-height:1.45;
}
@media(max-width:980px){
  .proof-layout{
    grid-template-columns:1fr;
  }
  .proof-photo img{
    min-height:430px;
  }
  .proof-copy{
    padding:42px 34px;
  }
}
@media(max-width:760px){
  .proof-strip{
    padding:36px 0 12px;
  }
  .proof-layout{
    gap:0;
  }
  .proof-photo img{
    height:auto;
    min-height:0;
    aspect-ratio:3/4;
    border-radius:6px 6px 0 0;
  }
  .proof-copy{
    padding:28px 22px;
    border-radius:0 0 6px 6px;
  }
  .proof-copy h2{
    font-size:30px;
  }
  .proof-copy p,
  .proof-point span{
    font-size:16px;
  }
  .proof-point b{
    font-size:20px;
  }
  .proof-points{
    margin-top:18px;
    gap:8px;
  }
}
/* Proof block without photo */
.proof-layout-no-photo{
  display:block;
}
.proof-copy-wide{
  padding:48px 56px;
}
.proof-copy-wide h2{
  max-width:820px;
}
.proof-copy-wide p{
  max-width:760px;
}
.proof-copy-wide .proof-points{
  grid-template-columns:repeat(3,1fr);
  align-items:start;
}
@media(max-width:980px){
  .proof-copy-wide .proof-points{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .proof-copy-wide{
    padding:28px 22px;
    border-radius:6px;
  }
}