@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/open-sans-latin-300.woff2") format("woff2"); }
:root { color-scheme: light; --navy: #112044; --navy-deep: #0b1733; --blue: #2759ad; --text: #253047; --muted: #6c7586; --line: #e3e8f0; --paper: #f5f5f7; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-width: 320px; min-height: 100vh; min-height: 100svh; margin: 0; background: var(--paper); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5; }
main { display: flex; flex: 1 0 auto; flex-direction: column; min-width: 0; }
button { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #4b82e1; outline-offset: 3px; }
.skip-link { position: absolute; top: -60px; left: 18px; z-index: 10; padding: 10px 14px; background: #fff; color: var(--navy); }
.skip-link:focus { top: 12px; }

.site-header { position: relative; min-height: 316px; padding: 73px clamp(24px, 5vw, 80px) 94px; background: var(--navy) url("assets/2023-12/iStock-870799536-scaled.jpg") center top / cover no-repeat; }
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #071632c9 0%, #0b1c3e8f 52%, #0b1b3d40 100%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.hero-kicker { margin: 0 0 10px; color: #c7d9ff; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.brand { display: inline-block; text-decoration: none; }
.brand h1 { margin: 0; color: #fff; font-size: clamp(48px, 6.1vw, 84px); font-weight: 700; letter-spacing: -.055em; line-height: 1.04; }
.hero-subtitle { margin: 16px 0 0; color: #e2eaf9; font-size: clamp(15px, 1.6vw, 19px); }
.tabs { position: absolute; z-index: 2; right: clamp(20px, 5vw, 80px); bottom: -28px; left: clamp(20px, 5vw, 80px); display: flex; align-items: center; gap: 4px; width: max-content; max-width: calc(100% - 40px); min-height: 56px; margin: 0 auto; padding: 6px; overflow-x: auto; border: 1px solid #e3e9f4; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px #0b1c3e24; scrollbar-width: thin; }
.tab { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 11px 17px; background: transparent; color: #3f4c64; cursor: pointer; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; transition: background-color .2s ease, color .2s ease; }
.tab:hover:not([aria-selected="true"]) { background: #edf2fb; color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }

.panels { flex: 1 0 auto; width: 100%; max-width: 1440px; margin: 0 auto; padding: 78px clamp(20px, 4vw, 58px) 80px; }
.section-heading { margin-bottom: 25px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-kicker { margin: 0 0 5px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.section-heading h2 { margin: 0; color: var(--navy); font-size: clamp(30px, 3.2vw, 44px); font-weight: 650; letter-spacing: -.045em; line-height: 1.1; }
.catalogue { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; margin: 0; padding: 0; list-style: none; }
.catalogue li { display: flex; min-width: 0; }
.card { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: auto; aspect-ratio: 1; overflow: hidden; border: 0; border-radius: 18px; padding: 0; background: #fff; color: inherit; cursor: pointer; text-align: left; box-shadow: 0 3px 14px #0000000d; transition: transform .28s ease, box-shadow .28s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #0000001a; }
.card-image { display: block; flex: 1 1 auto; min-height: 0; width: 100%; overflow: hidden; background: #fff; }
.card-image img { display: block; width: 100%; height: 100%; padding: clamp(18px, 2.2vw, 32px); object-fit: contain; transition: transform .32s ease; }
.card:hover .card-image img { transform: scale(1.025); }
.card-title { display: flex; flex: 0 0 auto; align-items: flex-start; min-height: 70px; width: 100%; padding: 0 22px 18px; color: #1d1d1f; font-size: 17px; font-weight: 600; line-height: 1.3; }
.panel:not([hidden]) .catalogue, .panel:not([hidden]) .contacts-grid { animation: panel-in .25s ease-out both; }

.contacts-panel { padding-top: 20px; }
.contacts-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; max-width: 1050px; margin: 0 auto; }
.contact-intro, .contact-info { min-height: 280px; padding: clamp(28px, 4vw, 48px); border-radius: 12px; }
.contact-intro { border: 1px solid var(--line); background: #fff; }
.contact-intro h2, .contact-info h2 { margin: 0 0 20px; font-size: clamp(26px, 2.5vw, 36px); font-weight: 650; letter-spacing: -.035em; line-height: 1.15; }
.contact-intro p { max-width: 350px; margin: 0 0 28px; color: var(--muted); }
.contact-intro a { color: var(--blue); overflow-wrap: anywhere; }
.contact-info { background: var(--navy); color: #fff; }
.contact-info ul { margin: 0 0 24px; padding: 0; list-style: none; }
.contact-info li { margin-bottom: 12px; }
.contact-info a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact-info a:hover { text-decoration: underline; }
.contact-info p { margin: 0; color: #cbd7eb; }

.site-footer { flex: 0 0 auto; width: 100%; margin-top: auto; border-top: 1px solid #d9d9df; background: #f5f5f7; color: #424245; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1.35fr 1fr .75fr; gap: 34px; max-width: 1440px; margin: 0 auto; padding: 42px clamp(20px, 4vw, 58px) 46px; }
.footer-inner > div { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer h2 { margin: 0 0 14px; color: #1d1d1f; font-size: 14px; font-weight: 650; }
.site-footer a { color: #424245; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer .footer-brand { color: #1d1d1f; font-size: 19px; font-weight: 700; letter-spacing: -.035em; }
.footer-brand-block p { max-width: 205px; margin: 11px 0 14px; color: #6e6e73; font-size: 14px; line-height: 1.45; }
.site-footer small { color: #86868b; font-size: 12px; }
.footer-link { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; font-size: 14px; line-height: 1.4; }
.footer-link svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; color: #666b77; }
.social-links { display: flex; gap: 10px; }
.social-links a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d2d2d7; border-radius: 50%; background: #fff; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.social-links a:hover { border-color: #a5b5d2; color: var(--blue); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; }

.image-dialog { width: min(900px, calc(100% - 30px)); max-height: 94vh; padding: 0; overflow: auto; border: 0; border-radius: 12px; background: #fff; color: var(--text); box-shadow: 0 22px 70px #0007; }
.image-dialog[open] { animation: dialog-in .26s cubic-bezier(.2, .8, .2, 1) both; }
.image-dialog::backdrop { background: #07142ec4; }
.image-dialog[open]::backdrop { animation: backdrop-in .26s ease-out both; }
.dialog-inner { background: #fff; }
.dialog-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dialog-caption h2 { margin: 0; color: var(--navy); font-size: clamp(18px, 2vw, 23px); font-weight: 600; line-height: 1.35; }
.dialog-caption p { display: none; }
.dialog-close { flex: 0 0 auto; border: 0; padding: 0 4px; background: transparent; color: #697386; font-size: 30px; line-height: 1; cursor: pointer; }
.dialog-close:hover { color: var(--navy); }
#dialog-image { display: block; max-width: 100%; max-height: min(80vh, 850px); margin: 0 auto; padding: 16px; object-fit: contain; }
@keyframes panel-in { from { opacity: .6; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { background: #07142e00; } to { background: #07142ec4; } }

@media (max-width: 1180px) { .catalogue { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .site-header { min-height: 275px; padding-top: 62px; }
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .site-header { min-height: 250px; padding: 58px 20px 76px; }
  .brand h1 { font-size: clamp(40px, 10vw, 56px); }
  .hero-subtitle { max-width: 280px; font-size: 14px; }
  .tabs { right: 16px; left: 16px; width: auto; max-width: none; margin: 0; }
  .tab { padding: 10px 13px; font-size: 12px; }
  .panels { padding: 70px 14px 65px; }
  .catalogue { grid-template-columns: 1fr; gap: 14px; }
  .card-title { min-height: 62px; padding: 0 18px 17px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tab, .card, .card-image img, .social-links a { transition: none; }
  .panel:not([hidden]) .catalogue, .panel:not([hidden]) .contacts-grid, .image-dialog[open], .image-dialog[open]::backdrop { animation: none; }
}
