/* Shared public-site refinements. The original photographs, type and blue palette remain the authority. */
:root { --link-color: #145e9c; --link-on-dark: #b9e5ff; }
body a, body a:visited { color: var(--link-color); text-underline-offset: 4px; }
body a:hover { text-decoration-thickness: 2px; }
.topbar, .service-page .topbar { gap: 20px; padding: 18px 3.8%; border-radius: 40px; margin-top: 10px; background: rgba(0,0,0,.25); backdrop-filter: blur(16px); color: #fff; }
.topbar .logo { flex: 0 0 auto; }
.topbar .logo img { width: clamp(74px,7vw,100px); padding: 0; }
.topbar .nav { gap: clamp(12px,1.6vw,28px); margin: auto; font-size: clamp(12px,.95vw,16px); }
.topbar .nav > a { margin: 0; white-space: nowrap; }
.topbar .nav a, .topbar .nav a:visited, .topbar .site-phone, .topbar .site-phone:visited { color: #fff; }
.topbar .contact-info { color: #fff; font-size: clamp(11px,.9vw,15px); flex-shrink: 0; text-align: right; }
.topbar .contact-info p { margin: 0 0 4px; }
.topbar .cta { color: #05243b; background: #75d2f0; border: 0; cursor: pointer; margin: 0; padding: 16px 22px; font-size: clamp(12px,1vw,16px); white-space: nowrap; }
.nav-disclosure { position: relative; }
.nav-disclosure summary, .service-disclosure summary, .mobile-services summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.nav-disclosure summary::-webkit-details-marker, .service-disclosure summary::-webkit-details-marker, .mobile-services summary::-webkit-details-marker { display: none; }
.nav-disclosure summary::after, .service-disclosure summary::after, .mobile-services summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 3px 4px; flex-shrink: 0; }
.nav-disclosure[open] summary::after, .service-disclosure[open] summary::after, .mobile-services[open] summary::after { transform: rotate(225deg); margin-bottom: -3px; }
.nav-panel { position: absolute; top: calc(100% + 12px); left: -20px; min-width: 240px; background: #0b2336; border-radius: 16px; padding: 12px; box-shadow: 0 14px 30px #0004; max-height: min(65vh,600px); overflow-y: auto; }
.nav-services .nav-panel { width: 520px; columns: 2; column-gap: 8px; }
.topbar .nav-panel a, .nav-panel button { display: block; break-inside: avoid; padding: 12px; margin: 0; font: 500 14px/1.5 Montserrat,sans-serif; text-decoration: none; color: #fff; text-align: left; border: 0; background: none; width: 100%; cursor: pointer; border-radius: 8px; }
.nav-panel a:hover, .nav-panel button:hover { background: #174765; }
body .hero-wrapper { height: auto; min-height: 100svh; }
.hero { width: min(1920px,100%); margin: auto; display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 3%; padding: clamp(36px,4vw,80px) 5.3% clamp(48px,6vw,120px); align-items: center; }
.hero-left { min-width: 0; }
.hero-left h1 { font-size: clamp(48px,5.9vw,112px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 24px; text-wrap: nowrap; }
.hero .lead { font-size: clamp(16px,1.35vw,24px); max-width: 43ch; line-height: 1.5; }
.hero-cta { width: min(100%,650px); margin-top: 28px; gap: 12px; }
.hero-cta .btn { min-height: 44px; font-size: clamp(12px,1vw,17px); }
.hero-right { position: static; width: 100%; max-width: none; line-height: 0; }
.hero-right img { display: block; width: 112%; max-width: none; height: auto; border-radius: 0; transform: translateX(-1%); }
.about-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr) !important; grid-template-rows: auto auto !important; gap: 20px; align-items: stretch; }
.about-bg-card { grid-column: 1; grid-row: 1 / 3; min-height: 0; }
.about-bg-overlay { height: 100%; padding: clamp(24px,3vw,48px); transform: none !important; }
.about-bg-overlay p, .about-bg-overlay .mini-about-p { width: 100%; margin-top: 0; }
.about-decor { display: block; position: static; align-self: flex-end; width: min(65%,400px); height: auto; margin: 12px -8px -16px 0; object-fit: contain; }
.about-image { grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 220px; border-radius: 20px; overflow: hidden; }
.about-image img { display: block; width: 100%; height: 100%; object-fit: cover; transform: none !important; }
.about-text-card { grid-column: 2; grid-row: 2; margin: 0; }
.service-disclosure { border-bottom: 1px solid #c4d6e5; margin-top: 10px; }
.service-disclosure summary { font: 600 15px/1.5 Montserrat,sans-serif; color: var(--link-color); padding: 8px 0; }
.service-disclosure .service-subservices { display: flex; flex-direction: column; padding: 4px 0 16px; gap: 0; }
.service-subservices a, .service-subservices button { background: none; color: var(--link-color); padding: 10px 0; border-radius: 0; min-height: 44px; }
.service-subservices a:hover, .service-subservices button:hover { background: none; color: var(--link-color); text-decoration: underline; }
.service-page .service-header { background: #173e53; background: linear-gradient(110deg,#5295ac,#05090e 75%); }
.service-page .service-intro { background: none; color: #183a5c; width: min(1200px,90%); margin: auto; padding: 28px 0 0; }
.service-page .service-crumbs { color: #3c566b; margin: 0; }
.service-page .service-crumbs a, .service-page .landing-block a, .footer-navigation a, .footer-navigation button, .office-map-link, .contacts-block a, .contacts-block a:visited { color: var(--link-color); }
.service-page .service-body { padding-top: 28px; }
.service-body > h1 { font: 500 clamp(30px,3.5vw,48px)/1.2 var(--mts-wide); color: #356ca6; text-wrap: balance; max-width: 28ch; margin: 0 0 24px; }
.service-summary { max-width: 72ch; font-size: 17px; line-height: 1.8; margin: 0; }
.service-page .consultation-container, .consultation-container { max-width: none; width: 100%; margin: 0; }
.service-page .consultation-content, .consultation-content { width: min(70%,1000px); max-width: none; padding: 40px; }
.consultation-checkbox a, .consultation-checkbox a:visited, .cookie-banner__text a, .cookie-banner__text a:visited { color: var(--link-on-dark); }
.contact-modal .checkbox-row a, .contact-modal .checkbox-row a:visited { color: var(--link-color); }
.hero .btn.outline, .hero .btn.outline:visited { color: #fff; }
.service-visual, .service-visual:visited, .contact-card, .contact-card:visited { color: #fff; }
.office-map { display: grid; grid-template-columns: 1fr 2fr; width: min(1440px,90%); margin: 0 auto 56px; background: #e5eef5; border-radius: 20px; overflow: hidden; color: #183a5c; }
.office-map-caption { padding: clamp(24px,3vw,48px); align-self: center; }
.office-map-caption h3 { font: 500 26px/1.3 var(--mts-wide); margin: 0 0 20px; }
.office-map-caption p { font: 500 16px/1.8 Montserrat,sans-serif; }
.office-map-caption a { display: inline-block; padding: 12px 0; }
.office-map iframe { display: block; border: 0; width: 100%; height: 380px; }
.mobile-services { width: 100%; }
.mobile-services summary { justify-content: center; }
.mobile-services nav { max-height: 35vh; overflow-y: auto; padding: 8px 0; }
.mobile-services nav a { font-size: 15px; display: block; padding: 10px; }
:where(a,button,summary):focus-visible { outline: 3px solid #2783c1; outline-offset: 4px; }
@media (max-width:1100px) {
 .topbar .nav, .topbar .contact-info, .topbar .cta { display: none !important; }
 .topbar, .service-page .topbar { padding: 12px 20px; border-radius: 32px; margin-top: 8px; }
 .hero { padding-top: 44px; }
 .hero-left h1 { font-size: 5.9vw; }
 .mobile-burger { display: inline-flex; }
}
@media (max-width:767px) {
 .hero { grid-template-columns: 1fr; padding: 36px 6% 44px; gap: 32px; }
 .hero-left h1 { font-size: clamp(29px,7.8vw,59px); }
 .hero .lead { font-size: 16px; max-width: 43ch; }
 .hero-right { width: min(78%,380px); justify-self: center; }
 .hero-right img { width: 100%; transform: none; }
 .hero-cta { width: 100%; }
 .hero-cta .btn { font-size: 13px; }
 .about-grid { grid-template-columns: 1fr !important; }
 .about-bg-card, .about-image, .about-text-card { grid-column: auto; grid-row: auto; }
 .about-image { height: auto; min-height: 0; }
 .about-image img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
 .about-decor { width: min(60%,260px); }
 .service-page .consultation-content, .consultation-content { width: 100%; padding: 16px 0; }
 .consultation-container { padding: 40px 6%; min-height: 0; }
 .office-map { grid-template-columns: 1fr; margin-bottom: 32px; }
 .office-map iframe { height: 320px; }
 .service-page .service-crumbs { font-size: 13px; }
}
@media (prefers-reduced-motion:reduce) { .nav-panel { scroll-behavior: auto; } }
@media (min-width:768px) {
 .hero { align-items: start; }
 .hero-left h1 { font-size: clamp(48px,6.4vw,112px); }
 .hero .lead { max-width: 50ch; }
 .hero-cta { width: min(78%,650px); }
 .hero-right img { width: 100%; transform: none; }
}
/* Disclosure navigation must not inherit the service FAQ layout. */
.service-page .nav-disclosure, .service-page .nav-disclosure:first-of-type { padding: 0; border: 0; }
.service-page .nav-disclosure summary { color: #fff; font: inherit; line-height: 1.5; }
/* Keep the translucent header readable while it crosses the light sections. */
.about-grid { min-height: 0 !important; }
.about-bg-overlay { height: auto; min-height: 100%; }
.about-decor { margin-top: 20px; }
section[id] { scroll-margin-top: 120px; }
.legal-page a, .legal-page a:visited { color: var(--link-on-dark); }
.legal-page .back-btn, .legal-page .back-btn:visited { color: #fff; }
/* Legibility corrections found in the final shared-component check. */
.topbar .contact-info .info-time { color: #fff; opacity: 1; }
.hero .btn.primary, .ai-container .btn.primary { color: #001425; }
.hero .btn.primary:hover, .ai-container .btn.primary:hover { color: #001425; background: linear-gradient(90deg,#5fbfff,#2c99d6); }
.work-card p { color: #4a5568; opacity: 1; }
.work-card .city { color: #4a596e; }
.about-toggle { color: var(--link-color); }
.contacts-block span { color: #35689d; }

/* The phone field stays white before, during and after editing. */
.consultation-phone input,
.consultation-phone input:hover,
.consultation-phone input:focus,
.contact-form input[type="tel"],
.contact-form input[type="tel"]:focus {
 background: #fff; color: #12395b; caret-color: #12395b; opacity: 1;
}
.consultation-phone input::placeholder { color: #5c6672; opacity: 1; }
.consultation-phone input:-webkit-autofill,
.contact-form input[type="tel"]:-webkit-autofill {
 -webkit-text-fill-color: #12395b;
 box-shadow: 0 0 0 1000px #fff inset;
}

/* Company overview follows the user's supplied two-column reference. */
.about-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 12px; align-items: stretch; }
.about-bg-card { grid-column: 1; grid-row: 1 / 3; min-height: 0; }
.about-bg-overlay { height: auto; min-height: 100%; padding: 36px 28px; }
.about-bg-overlay p { font-size: 16px; line-height: 1.65; margin: 0 0 28px; }
.about-bg-overlay .mini-about-p { width: 56%; margin: 48px 0 26px; }
.about-decor { display: block; position: absolute; right: 0; bottom: 22px; width: 100%; max-width: 640px; height: auto; margin: 0; pointer-events: none; }
.about-image { grid-column: 2; grid-row: 1; min-height: 0; height: auto; overflow: hidden; }
.about-image img { display: block; position: static; width: 100%; height: auto; aspect-ratio: 1.54; object-fit: cover; }
.about-text-card { grid-column: 2; grid-row: 2; padding: 30px 24px; font-size: 16px; line-height: 1.65; }
.about-text-card p { margin: 0; }
@media (max-width:1023px) {
 .about-grid { grid-template-columns: 1fr !important; }
 .about-bg-card, .about-image, .about-text-card { grid-column: 1; grid-row: auto; }
 .about-bg-card { order: 0; }
 .about-image { order: 1; }
 .about-text-card { order: 2; }
 .about-bg-overlay { min-height: 0; padding: 28px; }
 .about-bg-overlay .mini-about-p { width: 60%; margin-top: 28px; margin-bottom: 10px; }
 .about-decor { width: 90%; max-width: 520px; bottom: 20px; }
}
@media (max-width:500px) {
 .about-bg-overlay .mini-about-p { width: 100%; }
 .about-decor { display: none; }
}
/* Restore the original dark translucent header, constant while scrolling. */
.topbar .logo img { filter: none; opacity: 1; }
.topbar .nav > a, .topbar .nav > a:visited,
.topbar .site-phone, .topbar .site-phone:visited,
.topbar .contact-info, .topbar .contact-info .info-time,
.topbar .nav-disclosure summary,
.service-page .topbar .nav-disclosure summary { color: #fff; }
.topbar #mobile-burger .line { background: #fff; }
.topbar .cta { background: #75d2f0; }

.topbar .nav > a, .topbar .site-phone, .topbar .info-time,
.topbar .nav-disclosure summary { text-shadow: 0 1px 3px rgba(0,0,0,.65); }
