/* Shared layout for the multi-page site. Existing service components retain their styling. */
:root { --shadow: 0 8px 28px rgba(12,43,70,.07); }
body { font-size: 16px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2b93d1; outline-offset: 5px; }
.section { padding: 76px 0; }
h1,h2,h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.nav { max-width: 1320px; width: calc(100% - 48px); min-height: 88px; gap: 24px; }
.brand { flex-shrink: 0; font-size: 18px; }
.brand-name { display: inline-flex; align-items: center; gap: 9px; }
.brand small { font-size: 10px; letter-spacing: .035em; margin-top: 7px; padding-left: 31px; }
.ukraine-flag { display: inline-block; width: 22px; height: 15px; flex: 0 0 22px; border-radius: 2px; background: linear-gradient(to bottom,#0057b7 50%,#ffd700 50%); box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
.header-language { order: 3; margin-left: 0; gap: 2px; }
.lang-btn { min-width: 34px; min-height: 40px; padding: 6px; font-size: 12px; border-radius: 5px; font-weight: 600; }
.lang-btn.active { background: #eaf3f8; color: var(--navy); }
.nav-menu { order: 2; margin-left: auto; gap: 23px; font-size: 13px; font-weight: 600; }
.nav-menu .nav-link { padding: 12px 0; position: relative; white-space: nowrap; }
.nav-link[aria-current="page"]::after { content: ''; position: absolute; bottom: 3px; left: 0; right: 0; height: 2px; background: var(--blue); }
.btn { box-shadow: none; font-weight: 600; border-radius: 6px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px #0b2a4514; }
.btn-small { font-size: 12px; min-height: 38px; padding: 8px 13px; }
.hero { min-height: 560px; padding: 100px 0; display: flex; align-items: center; }
.hero-grid { display: block; padding: 0; }
.hero-copy { max-width: 680px; }
.hero h1 { font-size: clamp(38px,4.6vw,62px); line-height: 1.1; letter-spacing: -.035em; max-width: 690px; }
.hero-copy > p:not(.eyebrow) { max-width: 540px; font-size: 18px; line-height: 1.7; }
.hero .hero-media { background-position: center 55%; }
.eyebrow { letter-spacing: .13em; font-size: 11px; font-weight: 700; }
.section-head { margin-bottom: 32px; }
h2 { font-size: clamp(27px,3vw,38px); letter-spacing: -.025em; line-height: 1.2; }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.service-card { border: 1px solid var(--line); border-radius: 8px; padding: 30px; display: flex; flex-direction: column; background: #fff; transition: border-color .2s,box-shadow .2s; }
.service-card:hover { border-color: #9cbacb; box-shadow: var(--shadow); }
.card-number { font-size: 12px; color: #6b8190; letter-spacing: .1em; margin-bottom: 32px; }
.service-card h3 { margin: 0 0 13px; font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.service-card p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.service-card .service-price { color: var(--navy); font-size: 13px; font-weight: 600; margin-top: auto; margin-bottom: 20px; }
.text-link { display: inline-block; color: var(--navy); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #c0d3df; }
.text-link:hover { text-decoration-color: var(--navy); }
.service-card .text-link { align-self: flex-start; }
.page-intro { background: #edf4f8; padding: 62px 0 64px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(36px,4.5vw,56px); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 23px; max-width: 850px; }
.intro-description { margin: 0; max-width: 720px; color: #526779; font-size: 18px; line-height: 1.7; }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 13px; color: #526779; }
.back-link::before { content: '← '; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.editorial-grid h2 { margin-top: 12px; }
.editorial-grid p { margin-top: 0; }
.about-strip { background: #f4f7f9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-section { padding: 56px 0; background: #edf4f8; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-inner h2 { margin: 0 0 12px; font-size: 29px; }
.cta-inner p { margin: 0; color: var(--muted); }
.cta-inner .btn { flex-shrink: 0; }
.catalog-note { margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.empty-state { max-width: 730px; margin: 0 auto 30px; text-align: center; padding: 36px 20px; }
.empty-symbol { display: inline-grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 50%; color: #4a7897; font-size: 36px; }
.empty-state h2 { font-size: 29px; margin: 24px 0 16px; }
.empty-state p { max-width: 590px; margin: 0 auto 28px; color: var(--muted); }
.footer { padding: 48px 0 30px; }
.footer-links { gap: 14px 22px; }
.footer-links a { font-size: 13px; }
.footer-grid { row-gap: 26px; }
.footer-compliance { font-size: 12px; }
/* Show service choices as complete grids rather than hiding options off-screen. */
#templateGrid.template-carousel,#distributionGrid.distribution-carousel,#cvExamplesGrid.cv-examples-carousel,#resultsGrid.result-carousel,#reviewCards.review-carousel { display: grid; overflow: visible; scroll-snap-type: none; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-flow: row; grid-auto-columns: auto; mask-image: none; -webkit-mask-image: none; gap: 24px; padding: 0; }
#templateGrid.template-carousel > *,#distributionGrid.distribution-carousel > *,#cvExamplesGrid.cv-examples-carousel > *,#resultsGrid.result-carousel > *,#reviewCards.review-carousel > * { min-width: 0; width: auto; max-width: 100%; }
#templateGrid.template-carousel .template-card { flex: none; }
#templateGrid.template-carousel .template-preview { width: 100%; }
#reviewCards.review-carousel .review-image-card { height: 360px; background: #f5f7f9; box-shadow: none; }
#reviewCards.review-carousel img { width: 100%; height: 100%; object-fit: contain; }
#reviews .text-link { margin-top: 28px; }
#distributionGrid.distribution-carousel .distribution-card { cursor: pointer; box-shadow: none; }
#distributionGrid.distribution-carousel .distribution-card:hover { border-color: var(--blue); }
#resultsGrid.result-carousel { grid-template-columns: repeat(2,minmax(0,1fr)); }
.faq-visual-card { display: none; }
.faq-wrap { grid-template-columns: 1fr 2fr; grid-template-areas: "header list"; }
.faq-list { grid-column: 2; grid-row: 1 / 3; }
.steps { grid-template-columns: repeat(4,minmax(0,1fr)); }
.calculator .total-box { position: relative; }
.privacy-content { max-width: 820px; }
.privacy-content h1 { font-size: clamp(34px,5vw,48px); }
@media (max-width:1150px) {
 .nav { width: calc(100% - 32px); gap: 14px; }
 .nav-menu { gap: 13px; font-size: 12px; }
 .brand { font-size: 16px; }
 .brand small { font-size: 9px; }
}
@media (max-width:1000px) {
 .nav { min-height: 78px; flex-wrap: nowrap; }
 .header-language { margin-left: auto; }
 .menu-toggle { display: grid; order: 4; }
 .nav-menu { display: none; position: absolute; top: 100%; left: -16px; right: -16px; width: auto; margin: 0; padding: 20px 24px 28px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px #0b2a4510; }
 .nav-menu.open { display: flex; flex-direction: column; align-items: stretch; gap: 5px; }
 .nav-menu .nav-link { font-size: 16px; padding: 12px 0; }
 .nav-link[aria-current="page"]::after { right: auto; width: 28px; }
 .nav-menu .btn { margin-top: 12px; align-self: flex-start; }
 .service-card { padding: 24px; }
 .editorial-grid { gap: 40px; }
 #templateGrid.template-carousel,#cvExamplesGrid.cv-examples-carousel,#distributionGrid.distribution-carousel { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:700px) {
 .section { padding: 48px 0; }
 .container { width: calc(100% - 40px); }
 .hero { min-height: 480px; padding: 65px 0; }
 .hero h1 { font-size: 39px; }
 .hero-copy > p:not(.eyebrow) { font-size: 16px; }
 .hero .button-row { gap: 10px; }
 .hero .btn { font-size: 13px; padding: 12px 16px; }
 .service-grid,.editorial-grid { grid-template-columns: 1fr; gap: 20px; }
 .card-number { margin-bottom: 20px; }
 .service-card { padding: 27px; }
 .service-card p { margin-bottom: 20px; }
 .page-intro { padding: 38px 0 42px; }
 .intro-description { font-size: 16px; }
 .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
 .cta-inner h2 { font-size: 26px; }
 #reviewCards.review-carousel,#resultsGrid.result-carousel,#templateGrid.template-carousel,#distributionGrid.distribution-carousel,#cvExamplesGrid.cv-examples-carousel { grid-template-columns: 1fr; gap: 20px; }
 #templateGrid.template-carousel .template-card { display: grid; grid-template-columns: 105px 1fr; padding: 16px; gap: 16px; align-items: center; }
 #templateGrid.template-carousel .template-preview { height: 145px; min-height: 0; grid-row: 1 / 3; }
 #templateGrid.template-carousel .template-preview img { width: 100%; height: 100%; object-fit: contain; }
 #templateGrid.template-carousel .template-info { display: block; padding: 0; }
 #templateGrid.template-carousel .template-name,#templateGrid.template-carousel .template-price { display: block; }
 #templateGrid.template-carousel .template-mobile-line { display: none; }
 #templateGrid.template-carousel .template-order { margin: 0; font-size: 12px; padding: 8px; }
 .faq-wrap { display: block; }
 .faq-header { margin-bottom: 24px; }
 .steps { grid-template-columns: 1fr 1fr; }
 .footer-grid { display: flex; flex-direction: column; align-items: flex-start; }
 .footer-links { justify-content: flex-start; }
}
@media (max-width:400px) {
 .nav { gap: 7px; width: calc(100% - 24px); }
 .brand { font-size: 14px; }
 .brand small { padding-left: 0; font-size: 8px; }
 .brand-name { gap: 6px; }
 .ukraine-flag { width: 18px; flex-basis: 18px; height: 12px; }
 .lang-btn { min-width: 28px; font-size: 11px; padding: 3px; }
 .menu-toggle { width: 36px; height: 38px; padding: 7px; }
 .hero h1 { font-size: 34px; }
}
@media (prefers-reduced-motion:reduce) {
 html { scroll-behavior: auto; }
 *,*::before,*::after { animation: none !important; transition: none !important; }
}
html,body { overflow-x: clip; }
.template-lightbox .lightbox-close { display: block; z-index: 2; background: #0b2a45; }
.lightbox-close:hover { background: #123a5a; }
.service-card h2 { font-size: 23px; margin: 0 0 13px; line-height: 1.25; }

/* Homepage review preview: seven real reviews in a swipeable row. */
body[data-page="home"] #reviewCards.review-carousel {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(280px, 38vw, 420px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 22px;
  scrollbar-width: auto;
  scrollbar-color: #bdd5e5 #f1f6f9;
}
body[data-page="home"] #reviewCards.review-carousel .review-image-card {
  height: 480px;
  scroll-snap-align: start;
}
@media (max-width:700px) {
  body[data-page="home"] #reviewCards.review-carousel {
    grid-auto-columns: 88%;
    gap: 16px;
  }
  body[data-page="home"] #reviewCards.review-carousel .review-image-card { height: 420px; }
}

.hero-whatsapp { gap: 9px; }
.hero-whatsapp-icon { width: 19px; height: 19px; flex: 0 0 19px; fill: currentColor; }
/* Category menu on every screen; language choices remain at the right edge. */
.nav { justify-content: flex-start; }
.menu-toggle { display: grid; order: 0; cursor: pointer; }
.brand { order: 1; }
.header-language { order: 3; margin-left: auto; }
.nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; margin: 0; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: 0 18px 35px #0b2a4515; max-height: calc(100dvh - 100px); overflow-y: auto; }
.nav-menu.open { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 30px; }
.menu-group { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; }
.menu-heading { color: #607086; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 12px; }
.nav-menu .nav-link { white-space: normal; font-size: 14px; padding: 10px 0; }
.nav-menu .btn { margin-top: 12px; align-self: flex-start; width: auto; }
.nav-link[aria-current="page"]::after { right: auto; width: 28px; }
.service-card { cursor: pointer; }
.service-card:focus-visible { outline-offset: 4px; }
.service-card .text-link { pointer-events: none; }
body[data-page="home"] .service-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
body[data-page="home"] .service-card { padding: 26px; }
.footer .footer-links a,.footer .footer-links a:visited { color: #d6e4ee; opacity: 1; }
.footer .footer-links a:hover,.footer .footer-links a:focus-visible { color: #fff; }
.catalog-note,.quote-note { padding: 20px 24px; border: 1px solid var(--line); border-radius: 8px; background: #f3f8fb; color: var(--navy); }
.quote-note { font-size: 14px; }
.total-box strong { overflow-wrap: anywhere; }
/* All proof galleries use native horizontal scrolling, with explicit controls. */
body #reviewCards.review-carousel,body #resultsGrid.result-carousel,body #cvExamplesGrid.cv-examples-carousel {
  display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(280px,38vw,420px);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; overscroll-behavior-inline: contain;
  padding: 4px 2px 22px; gap: 24px; scrollbar-width: auto; scrollbar-color: #bdd5e5 #f1f6f9;
}
body #reviewCards.review-carousel .review-image-card { height: 480px; }
body #resultsGrid.result-carousel > *,body #cvExamplesGrid.cv-examples-carousel > * { scroll-snap-align: start; }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.carousel-controls > span { font-size: 12px; color: var(--muted); }
.carousel-controls > div { display: flex; gap: 8px; }
.carousel-controls button { width: 44px; height: 44px; border: 1px solid #bfd1df; border-radius: 50%; background: #fff; color: var(--navy); font-size: 21px; cursor: pointer; }
.carousel-controls button:hover { background: var(--sky); }
.carousel-controls button:disabled { opacity: .35; cursor: default; }
body[data-page="home"] .steps { grid-template-columns: repeat(5,minmax(0,1fr)); }
@media(max-width:1000px){
 body[data-page="home"] .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 body[data-page="home"] .steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:700px){
 .nav-menu { left: -8px; right: -8px; padding: 24px; }
 .nav-menu.open { grid-template-columns: 1fr; gap: 24px; }
 .menu-group + .menu-group { padding-top: 20px; border-top: 1px solid var(--line); }
 .menu-heading { margin-bottom: 4px; }
 .nav-menu .nav-link { font-size: 16px; }
 body[data-page="home"] .service-grid { grid-template-columns: 1fr; }
 body #reviewCards.review-carousel,body #resultsGrid.result-carousel,body #cvExamplesGrid.cv-examples-carousel { grid-auto-columns: 88%; gap: 16px; }
 body #reviewCards.review-carousel .review-image-card { height: 420px; }
 body[data-page="home"] .steps { grid-template-columns: 1fr 1fr; }
 .total-box strong { font-size: 20px; }
}
@media(max-width:360px){
 .brand { font-size: 12px; }
 .brand small { font-size: 7px; }
 .nav { gap: 6px; }
 .lang-btn { min-width: 26px; }
}
#reviewCards.review-carousel .review-text-card { display:flex; flex-direction:column; min-height:400px; height:auto; padding:28px; border:1px solid var(--line); border-radius:22px; background:#fff; box-shadow:0 8px 22px #102f4810; scroll-snap-align:start; }
.review-source { display:flex; align-items:center; justify-content:space-between; color:#538ba3; font-size:13px; font-weight:650; letter-spacing:.04em; }
.quote-mark { color:#d4e8f2; font-size:58px; line-height:.7; font-family:Georgia,serif; }
.review-text-card blockquote { margin:34px 0 38px; color:#294b60; font-size:17px; line-height:1.65; font-weight:400; }
.review-card-footer { margin-top:auto; border-top:1px solid #e4edf2; padding-top:22px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:12px; color:#6c8492; }
.review-original { color:#1686ac; font-weight:650; padding:8px 0; }
.review-original:hover { text-decoration:underline; text-underline-offset:4px; }
@media(max-width:700px){#reviewCards.review-carousel .review-text-card{padding:24px;min-height:380px}.review-text-card blockquote{font-size:16px}}

body[data-page="services"] .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:700px){body[data-page="services"] .service-grid {grid-template-columns:1fr;}}
/* Consistent contact cards and QR artwork, with identical module counts and quiet zones. */
#contactCards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; max-width:960px; margin-inline:auto; }
#contactCards .contact-card { display:flex; flex-direction:column; align-items:stretch; gap:20px; padding:28px; background:#fff; border:1px solid #dbe7ef; border-radius:16px; box-shadow:0 8px 24px #0b2a4506; }
#contactCards .contact-row { order:1; justify-content:flex-start; min-height:48px; gap:12px; text-align:left; }
#contactCards .contact-row span { align-items:flex-start; justify-items:start; text-align:left; }
#contactCards .contact-row small { font-size:13px; overflow-wrap:anywhere; }
#contactCards .contact-qr { order:2; width:196px; min-height:196px; height:196px; padding:0; margin:0 auto; border:1px solid #e1eaf0; border-radius:12px; background:#fff; box-shadow:none; overflow:hidden; }
#contactCards .contact-qr img { width:194px; max-width:100%; height:194px; max-height:none; border:0; border-radius:0; box-shadow:none; object-fit:contain; }
#contactCards .contact-cta { order:3; width:100%; margin-top:auto; min-height:46px; border-radius:8px; background:#f5f9fc; border-color:#dbe7ef; font-size:14px; }
#contactCards .contact-cta:hover { background:#eaf3f9; }
#contactCards .desktop-qr { display:flex; }
#contactCards .mobile-qr,#contactCards .mobile-qr-toggle { display:none; }
@media(max-width:600px){
 #contactCards { grid-template-columns:1fr; gap:16px; }
 #contactCards .contact-card { padding:22px; gap:16px; }
 #contactCards .desktop-qr { display:none; }
 #contactCards .mobile-qr-toggle { display:block; order:4; margin:0; padding:8px; font-size:13px; }
 #contactCards .contact-card.qr-open .mobile-qr { display:flex; order:5; width:196px; height:196px; min-height:196px; max-height:196px; margin:0 auto; padding:0; }
}
/* Contact hierarchy: direct messaging first, social profiles second. */
#contactCards { max-width:1160px; gap:20px; }
.contact-group-heading { grid-column:1/-1; margin:0 0 2px; }
.contact-group-heading h3 { margin:0 0 5px; font-size:23px; letter-spacing:-.02em; color:var(--navy); }
.contact-group-heading p { margin:0; font-size:14px; color:var(--muted); }
.contact-group-secondary { margin-top:20px; }
#contactCards .contact-card { display:grid; grid-template-columns:minmax(0,1fr) 148px; grid-template-rows:1fr auto; gap:18px 22px; padding:26px; text-align:left; border-top:3px solid var(--contact-accent); background:var(--contact-tint); align-items:center; }
#contactCards .contact-card-whatsapp { --contact-accent:#168b50; --contact-tint:#eaf8f0; }
#contactCards .contact-card-telegram { --contact-accent:#1682b4; --contact-tint:#eaf6fc; }
#contactCards .contact-card-instagram { --contact-accent:#b63b7d; --contact-tint:#fceef5; }
#contactCards .contact-card-linkedin { --contact-accent:#1765a9; --contact-tint:#edf3fc; }
#contactCards .contact-row { grid-column:1; grid-row:1; order:unset; align-self:start; flex-wrap:wrap; }
#contactCards .contact-row strong { font-size:18px; }
#contactCards .contact-qr.desktop-qr { grid-column:2; grid-row:1/3; order:unset; width:148px; height:148px; min-height:148px; border-radius:12px; margin:0; border-color:#ffffff; }
#contactCards .contact-qr.desktop-qr img { width:146px; height:146px; }
#contactCards .contact-cta { grid-column:1; grid-row:2; order:unset; width:auto; justify-self:start; align-self:end; min-height:42px; padding:10px 16px; background:var(--contact-accent); color:#fff; border-color:var(--contact-accent); margin:0; }
#contactCards .contact-cta:hover { background:var(--contact-accent); filter:brightness(.92); }
@media(min-width:601px) and (max-width:1050px){
 #contactCards { grid-template-columns:1fr; max-width:740px; }
}
@media(max-width:600px){
 #contactCards .contact-card { display:flex; flex-direction:column; align-items:stretch; padding:22px; gap:16px; }
 #contactCards .contact-row { flex-wrap:nowrap; order:1; }
 #contactCards .contact-qr.desktop-qr { display:none; }
 #contactCards .contact-cta { order:3; align-self:stretch; width:100%; min-height:46px; }
 #contactCards .mobile-qr-toggle { color:var(--contact-accent); }
 .contact-group-secondary { margin-top:16px; }
}

.cv-choice-divider { display:flex; align-items:center; gap:24px; color:var(--navy); font-size:1.15rem; font-weight:600; }
.cv-choice-divider::before,.cv-choice-divider::after { content:""; height:1px; background:#dce7ef; flex:1; }
