/* 13.11.2026 — visual improvements. Loaded after page CSS. */

/* Homepage: the first price card should not collide with the WhatsApp/Call row. */
@media (max-width: 620px) {
  .hero .hero-content { padding-bottom: 32px; }
  .hero .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; align-items: stretch; }
  .hero .hero-actions .btn { min-width: 0; width: 100%; min-height: 50px; padding: 12px 8px; white-space: nowrap; font-size: clamp(14px, 4vw, 17px); }
  .hero .hero-actions .btn:first-child { grid-column: 1 / -1; min-height: 54px; font-size: clamp(16px, 4.1vw, 18px); }
  .hero + .wrap > .price-row { margin-top: 19px; }
}

/* Gazel: the three use-case cards now link to real service pages. */
.service-rework .scenario-grid .scenario-link {
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
  cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-rework .scenario-grid .scenario-link:hover {
  transform: translateY(-3px); border-color: #e8bb7b;
  box-shadow: 0 13px 30px #0007, 0 0 0 1px #e5b46b35;
}
.service-rework .scenario-grid .scenario-link:focus-visible { outline: 3px solid #ffd48a; outline-offset: 3px; }
.service-rework .scenario-grid .scenario-link .scenario-copy { flex: 1; display: flex; flex-direction: column; }
.service-rework .scenario-grid .scenario-link-hint {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 15px; font: 750 15px/1.3 Manrope, system-ui, sans-serif;
  color: #ffd38c;
}
.service-rework .scenario-grid .scenario-link-hint span { font-size: 20px; line-height: 1; }
.service-rework .scenario-home-note {
  margin-top: 17px; padding: 12px 16px; border-radius: 11px;
  border: 1px solid #62758788; background: #1a2b3859;
  color: #c9d6e0; font-size: 16px; line-height: 1.5;
}
.service-rework .scenario-home-note a { color: #ffd38c; font-weight: 740; text-decoration: underline; text-underline-offset: 3px; }
.service-rework .scenario-home-note a:hover { color: #ffe9bd; }

/* FAQs: on phones show a real portrait, instead of a too-tall 125px-wide strip. */
@media (max-width: 690px) {
  .answer-contact-card .answer-contact-person {
    display: flex; flex-direction: column; align-items: stretch;
    min-height: 0; padding: 14px; gap: 0;
    border-right: 0; border-bottom: 1px solid #72899a7a;
  }
  .answer-contact-person .answer-person-photo {
    width: 100%; height: clamp(218px, 62vw, 288px);
    min-height: 0; flex: 0 0 auto; overflow: hidden;
    border-radius: 13px; border: 1px solid #8e9eaa86;
  }
  .answer-contact-person .answer-person-photo img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: 50% 33%;
  }
  .answer-contact-person .answer-person-photo:after { background: linear-gradient(0deg, #13243235, transparent 30%); }
  .answer-contact-person .answer-person-text {
    width: 100%; padding: 17px 4px 8px; gap: 12px;
    align-items: flex-start;
  }
  .answer-contact-person .question-person-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .answer-contact-person .question-person-head h3 { font-size: 24px; margin: 0; }
  .answer-contact-person .answer-person-text p { font-size: 16px; line-height: 1.55; }
  .answer-contact-person .question-person-actions {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%; gap: 8px; margin-top: 5px;
  }
  .answer-contact-person .q-social {
    min-width: 0; width: 100%; min-height: 43px;
    padding: 9px 4px; border-radius: 10px;
    font-size: clamp(13px, 3.6vw, 15px); white-space: nowrap;
  }
}

/* Service pages: a more balanced, tidy portrait/contact widget on narrow screens. */
@media (max-width: 690px) {
  section.contact-strip.person-contact {
    grid-template-columns: minmax(0, 112px) minmax(0, 1fr) !important;
    align-items: start !important; padding: 16px !important; gap: 14px !important;
    border-radius: 18px;
  }
  .person-contact .person-photo {
    width: 112px; height: 140px; aspect-ratio: 4 / 5;
    object-fit: cover; object-position: 61% 28%;
    border-radius: 13px; border: 1px solid #9cabb58c;
  }
  .person-contact .person-details { min-width: 0; gap: 9px; }
  .person-contact .person-top h2 { font-size: clamp(20px, 5.5vw, 25px); }
  .person-contact .person-intro { font-size: 15px; line-height: 1.47; }
  .person-contact .person-number { font-size: clamp(15px, 4.2vw, 18px); }
  .person-contact .person-actions { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px !important; }
  .person-contact .person-actions .btn {
    min-width: 0; width: 100%; padding: 10px 5px; min-height: 43px;
    white-space: nowrap; border-radius: 10px;
    font-size: clamp(12px, 3.6vw, 15px); text-align: center;
  }
}
@media (max-width: 370px) {
  section.contact-strip.person-contact { grid-template-columns: 92px minmax(0, 1fr) !important; padding: 12px !important; gap: 10px !important; }
  .person-contact .person-photo { width: 92px; height: 118px; }
  .person-contact .person-top h2 { font-size: 20px; }
}

/* 13.11 v2 — Easy-to-read hero photographs on service pages.
   They previously appeared almost blank on phones: opacity .36 + opaque dark overlay. */
.page-hero { isolation: isolate; }
.page-hero > .page-hero-image {
  z-index: 0;
  opacity: 1;
  display: block;
  pointer-events: none;
}
.page-hero::after { z-index: 1; }
.page-hero > .page-hero-inner { position: relative; z-index: 2; }
@media (max-width: 650px) {
  body .page-hero > .page-hero-image {
    opacity: .88;
    width: 100%; height: 100%; object-fit: cover;
    object-position: 67% 46%;
  }
  body .page-hero::after,
  body.service-rework .page-hero::after,
  body.contact-page .page-hero::after {
    background:
      linear-gradient(90deg, rgba(9,18,27,.84) 0%, rgba(9,18,27,.67) 53%, rgba(9,18,27,.39) 100%),
      linear-gradient(0deg, rgba(9,18,27,.77) 0%, transparent 58%) !important;
  }
  /* Keep buttons and all textual information readable over the picture. */
  .page-hero .page-hero-inner h1, .page-hero .page-lead {
    text-shadow: 0 3px 12px rgba(0,0,0,.8);
  }
}
@media (min-width:651px) and (max-width:1000px) {
  body .page-hero::after {
    background: linear-gradient(90deg, #0b141ded 0%, #0b141da8 60%, #0b141d58 100%);
  }
}
/* Homepage: small pulse badge beside the contact person's name. */
.person-name-line {display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:9px;}
.person-name-line .person-name {margin-top:0;}
.home-live-indicator {display:inline-flex;align-items:center;gap:8px;border-radius:999px;border:1px solid #60d48d85;background:rgba(13,114,71,.22);color:#a1efbd;font:700 14px/1.2 'Golos Text',system-ui,sans-serif;padding:6px 11px;white-space:nowrap;}
.home-live-dot {position:relative;display:inline-block;width:10px;height:10px;flex:0 0 10px;border-radius:50%;background:#4ce78a;box-shadow:0 0 0 2px #155c37, 0 0 10px #33e67a;}
.home-live-dot::after {content:'';position:absolute;inset:-5px;border:1px solid rgba(74,233,131,.7);border-radius:50%;animation:home-contact-pulse 2.6s ease-out infinite;}
@keyframes home-contact-pulse {0% {opacity:.9;transform:scale(.65)} 85%,100% {opacity:0;transform:scale(1.65)}}
@media (prefers-reduced-motion:reduce) {.home-live-dot::after {animation:none;opacity:.45}}
@media (max-width:620px) {.person-name-line {gap:10px;margin-top:14px;}.home-live-indicator {font-size:13px;padding:6px 10px;}}

/* 13.11.2026 — shared full-size contact panel on all service pages. */
.shared-contact {
  display:grid; grid-template-columns:minmax(220px,34%) minmax(0,1fr);
  margin:48px 0 34px; overflow:hidden;
  border:1px solid rgba(207,163,100,.75); border-radius:22px;
  background:radial-gradient(ellipse at 0 0,rgba(62,89,110,.56),transparent 58%),linear-gradient(115deg,#223849,#152634 68%,#101c29);
  box-shadow:0 15px 35px rgba(0,0,0,.2);
  color:#f8fbff;
}
.shared-contact-photo {position:relative; min-height:340px; overflow:hidden; background:#14242d;}
.shared-contact-photo img {position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:51% 32%;}
.shared-contact-content {display:flex;flex-direction:column;justify-content:center;min-width:0;gap:17px;padding:27px 28px;}
.shared-contact-heading {display:flex;align-items:center;flex-wrap:wrap;gap:12px;}
.shared-contact-heading h2 {margin:0;color:#f7fbff;font:800 clamp(24px,2.8vw,32px)/1.2 Manrope,system-ui,sans-serif;letter-spacing:-.02em;}
.shared-contact-online {display:inline-flex;align-items:center;gap:9px;padding:7px 12px;border:1px solid rgba(67,205,123,.65);border-radius:999px;background:rgba(9,100,59,.34);color:#a4eebd;font:750 14px/1.3 'Golos Text',system-ui,sans-serif;white-space:nowrap;}
.shared-contact-dot {position:relative;display:inline-block;width:11px;height:11px;border-radius:50%;background:#41e684;box-shadow:0 0 10px rgba(65,230,132,.7);}
.shared-contact-dot::after {content:"";position:absolute;inset:-6px;border:1px solid rgba(76,235,137,.75);border-radius:50%;animation:service-contact-pulse 2.6s ease-out infinite;}
@keyframes service-contact-pulse {0%{transform:scale(.55);opacity:1} 100%{transform:scale(1.65);opacity:0}}
.shared-contact-content p {margin:0;color:#d5e0e8;font:400 clamp(16px,1.7vw,19px)/1.58 'Golos Text',system-ui,sans-serif;}
.shared-contact-phone {width:max-content;max-width:100%;text-decoration:none;color:#f6c578;font:800 clamp(21px,2.5vw,28px)/1.25 Manrope,system-ui,sans-serif;}
.shared-contact-phone:hover {color:#ffdda8;}
.shared-contact-buttons {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.shared-contact-button {min-width:0;min-height:47px;padding:10px 9px;border:1px solid #8d9daa;border-radius:13px;display:flex;align-items:center;justify-content:center;text-decoration:none;color:#fff;font:800 clamp(13px,1.55vw,17px)/1.25 Manrope,system-ui,sans-serif;white-space:nowrap;text-align:center;transition:filter .2s ease,transform .2s ease;}
.shared-contact-button:hover {filter:brightness(1.1);transform:translateY(-1px);}
.shared-contact-button:focus-visible {outline:3px solid #f5c572;outline-offset:3px;}
.shared-contact-call {background:linear-gradient(150deg,#e9b862,#ba832e);border-color:#edc879;color:#21190d;}
.shared-contact-wa {background:linear-gradient(155deg,#12864d,#0a4b2f);border-color:#52b47a;}
.shared-contact-max {background:linear-gradient(155deg,#7655bf,#382078);border-color:#a38fdc;}
@media(max-width:780px) {
  .shared-contact {grid-template-columns:1fr;margin:34px 0 24px;border-radius:19px;}
  .shared-contact-photo {width:100%;height:clamp(220px,63vw,340px);min-height:0;}
  .shared-contact-photo img {object-position:50% 33%;}
  .shared-contact-content {padding:20px 19px 22px;gap:15px;}
  .shared-contact-heading h2 {font-size:clamp(25px,6vw,32px);}
  .shared-contact-content p {font-size:clamp(16px,4vw,18px);line-height:1.55;}
  .shared-contact-buttons {gap:8px;}
  .shared-contact-button {min-height:48px;padding:10px 4px;font-size:clamp(12px,3.7vw,16px);border-radius:11px;}
}
@media(max-width:355px) {.shared-contact-buttons{gap:6px}.shared-contact-button{font-size:12px}.shared-contact-content{padding:16px 12px}}
@media(prefers-reduced-motion:reduce){.shared-contact-dot::after{animation:none;opacity:.4}.shared-contact-button{transition:none}}
