:root {
    --navy: #071b33;
    --navy-strong: #031225;
    --blue: #43b9e8;
    --blue-deep: #1476a8;
    --pale: #f3f7fa;
    --ink: #102235;
    --muted: #607285;
    --border: #d9e3eb;
    --white: #ffffff;
    --max-width: 1180px;
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.25rem;
    --space-5: 4rem;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --shadow: 0 1.5rem 4rem rgb(5 27 50 / 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--pale); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:where(a, button):focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: 0.65rem 1rem; color: var(--navy); background: var(--white); border-radius: var(--radius-sm); transform: translateY(-180%); transition: transform 180ms ease; }
.skip-link:focus { transform: translateY(0); }
.hero { position: relative; isolation: isolate; display: grid; min-height: 100svh; color: var(--white); background: linear-gradient(135deg, var(--navy-strong), #0b3859 55%, #092239); overflow: hidden; }
.hero::after { position: absolute; right: clamp(1.5rem, 6vw, 6rem); bottom: 2rem; width: 1px; height: 3.5rem; background: linear-gradient(var(--blue), transparent); content: ""; opacity: 0.85; }
.hero video, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero video { z-index: -2; object-fit: cover; }
.video-fallback-message { position: absolute; z-index: 0; inset: auto 1.5rem 1.5rem; margin: 0; color: rgb(255 255 255 / 0.7); font-size: 0.85rem; text-align: center; }
.hero::before { z-index: -1; background: linear-gradient(90deg, rgb(3 18 37 / 0.88), rgb(3 18 37 / 0.42) 55%, rgb(3 18 37 / 0.7)), linear-gradient(0deg, rgb(3 18 37 / 0.74), transparent 55%); content: ""; }
.header, .content { width: min(var(--max-width), calc(100% - 3rem)); margin-inline: auto; }
.header { align-self: start; display: flex; align-items: center; justify-content: space-between; padding-top: 2rem; }
.header > a { display: inline-flex; align-items: center; }
.logo { width: 9rem; height: 5rem; object-fit: contain; object-position: left center; }
.languages { display: flex; gap: 0.25rem; }
.language-button { min-width: 2.75rem; padding: 0.55rem 0.6rem; color: rgb(255 255 255 / 0.7); font: inherit; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; background: transparent; border: 1px solid transparent; border-radius: 999px; cursor: pointer; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.language-button:hover, .language-button[aria-pressed="true"] { color: var(--white); background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.3); }
.content { align-self: center; padding-block: 5rem 8rem; }
.badge { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.5rem; color: #c7f1ff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.badge::before { width: 0.5rem; height: 0.5rem; background: var(--blue); border-radius: 50%; content: ""; box-shadow: 0 0 0 0.3rem rgb(67 185 232 / 0.18); }
h1, h2 { margin-top: 0; line-height: 1.05; letter-spacing: -0.04em; }
h1 { max-width: 11ch; margin-bottom: 1.25rem; font-size: clamp(3.5rem, 9vw, 7.5rem); }
.subtitle { max-width: 34rem; margin: 0; color: rgb(255 255 255 / 0.78); font-size: clamp(1.1rem, 2vw, 1.45rem); }
.buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.btn { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; padding: 0.8rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; text-decoration: none; transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: var(--navy); background: var(--blue); }
.btn.primary:hover { background: #73d6f5; }
.btn.secondary { color: var(--white); background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.35); }
.btn.secondary:hover { background: rgb(255 255 255 / 0.18); }
.status { margin: 3rem 0 0; color: rgb(255 255 255 / 0.55); font-size: 0.85rem; }

main > section:not(.hero), footer { padding: clamp(4rem, 9vw, 7.5rem) max(1.5rem, calc((100% - var(--max-width)) / 2)); }
main > section:not(.hero) { background: var(--white); }
main > section:not(.hero):nth-child(odd) { background: var(--pale); }
main > section h2, footer h2 { margin-bottom: 1.25rem; font-size: clamp(2rem, 4vw, 3.5rem); }
main > section p { max-width: 44rem; color: var(--muted); font-size: 1.1rem; }
#company { display: grid; grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr); gap: var(--space-5); }
#company > * { margin-block: 0; }
#company > h2 { grid-column: 1; }
.company-intro { grid-column: 2; }
.company-intro p { max-width: 36rem; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: var(--ink); }
.company-intro p:first-child { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-bottom: 1rem; }
.company-tagline { grid-column: 1 / -1; margin-bottom: 2rem; color: var(--blue-deep); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }

.metrics { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 0; padding: 0; list-style: none; }
.metric-card { min-width: 0; padding: 1.5rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.metric-card:hover { transform: translateY(-4px); border-color: #9fcde1; box-shadow: 0 1.75rem 4rem rgb(5 27 50 / 0.13); }
.metric-card strong { display: block; color: var(--blue-deep); font-size: 2.5rem; line-height: 1; }
.metric-card span { display: block; margin-top: 0.6rem; color: var(--muted); }

#kolyadichi, #strategy { padding: clamp(4rem, 9vw, 7.5rem) max(1.5rem, calc((100% - var(--max-width)) / 2)); }
#kolyadichi { color: var(--white); background: var(--navy); }
#kolyadichi h2, #kolyadichi strong { color: var(--white); }
#kolyadichi span { color: rgb(255 255 255 / 0.72); }
#strategy { background: var(--white); }

.kolyadichi-location { display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0 2.5rem; padding: 1.25rem 1.5rem; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.16); border-radius: var(--radius-md); }
.location-pin { font-size: 1.5rem; }
.kolyadichi-location span:last-child { font-size: 1rem; }

.kolyadichi-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; margin: 0; list-style: none; }
.kolyadichi-features li { padding: 1.5rem; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--radius-md); }
.kolyadichi-features strong { display: block; margin-bottom: 0.6rem; font-size: 1.1rem; }
.kolyadichi-features span { font-size: 0.95rem; line-height: 1.55; }

.kolyadichi-capacities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.kolyadichi-capacities li { padding: 1rem 1.25rem; color: rgb(255 255 255 / 0.72); background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.1); border-radius: var(--radius-sm); font-size: 0.9rem; line-height: 1.5; }
.kolyadichi-capacities li::before { display: block; margin-bottom: 0.4rem; color: var(--blue); font-weight: 700; content: "—"; }

.strategy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0; margin: 2rem 0 0; list-style: none; }
.strategy-list li { padding: 1.5rem; background: var(--pale); border: 1px solid var(--border); border-radius: var(--radius-md); }
.strategy-list strong { display: block; margin-bottom: 0.5rem; color: var(--blue-deep); font-size: 1.05rem; }
.strategy-list span { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

.strategy-cta { margin-top: 3rem; padding: 2rem; background: linear-gradient(135deg, var(--navy-strong), #123e5c); border-radius: var(--radius-lg); text-align: center; }
.strategy-cta p { max-width: none; color: rgb(255 255 255 / 0.85); font-size: 1.05rem; }
.company-closing { margin-top: 1rem; color: var(--white) !important; font-size: 1.25rem !important; font-weight: 700; }
#fleet-gallery { color: var(--white); background: var(--navy); }
#fleet-gallery p { color: rgb(255 255 255 / 0.7); }
.gallery-frame { position: relative; margin-top: 2.5rem; }
#gallery-track { position: relative; min-height: clamp(16rem, 45vw, 32rem); background: linear-gradient(135deg, #123e5c, #0a263e); border: 1px solid rgb(255 255 255 / 0.16); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-track { display: flex; height: 100%; min-height: inherit; transition: transform 280ms ease; }
.gallery-slide { position: relative; display: flex; flex: 0 0 100%; min-height: inherit; flex-direction: column; justify-content: end; padding: clamp(1.5rem, 5vw, 4rem); overflow: hidden; }
.gallery-slide img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-slide::after { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(3 18 37 / 0.65), transparent 55%); content: ""; }
.gallery-slide h3, .gallery-slide p { position: relative; z-index: 2; }
.gallery-slide h3 { margin: 0; font-size: clamp(1.5rem, 4vw, 3rem); }
.gallery-slide p { margin-bottom: 0; }
.gallery-arrow { position: absolute; z-index: 1; top: 50%; width: 2.75rem; height: 2.75rem; color: var(--white); background: rgb(3 18 37 / 0.68); border: 1px solid rgb(255 255 255 / 0.35); border-radius: 50%; cursor: pointer; transform: translateY(-50%); }
.gallery-previous { left: 1rem; }
.gallery-next { right: 1rem; }
.gallery-status { margin: 0.75rem 0 0; color: rgb(255 255 255 / 0.72) !important; text-align: center; font-size: 0.9rem !important; }
.back-to-top { position: fixed; z-index: 5; right: 1.25rem; bottom: 1.25rem; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0.9rem; color: var(--white); background: rgb(7 27 51 / 0.72); border: 1px solid rgb(255 255 255 / 0.32); border-radius: 999px; box-shadow: 0 0.75rem 2rem rgb(5 27 50 / 0.2); cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 700; backdrop-filter: blur(0.4rem); }
.back-to-top[hidden] { display: none; }
.video-fallback video { display: none; }
.video-fallback-message { display: none; }
.video-fallback .video-fallback-message { display: block; }
#gallery-dots { display: flex; justify-content: center; gap: 0.5rem; padding-top: 1rem; }
#gallery-dots button { width: 0.75rem; height: 0.75rem; padding: 0; background: rgb(255 255 255 / 0.35); border: 0; border-radius: 50%; cursor: pointer; }
#gallery-dots button[aria-current="true"], #gallery-dots button:hover { background: var(--blue); }
#contacts { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-5); }
#contacts > a { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; margin-top: 0.75rem; color: var(--ink); background: var(--pale); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; font-weight: 700; transition: background-color 180ms ease, border-color 180ms ease; }
#contacts > a::after { color: var(--blue-deep); content: "->"; }
#contacts > a:hover { background: #e8f5fa; border-color: var(--blue); }
footer { color: rgb(255 255 255 / 0.72); background: var(--navy-strong); }
footer h2 { color: var(--white); }
footer dl { display: grid; grid-template-columns: minmax(10rem, 0.65fr) minmax(0, 1.35fr); max-width: 58rem; margin: 2rem 0 0; border-top: 1px solid rgb(255 255 255 / 0.16); }
footer dt, footer dd { padding: 0.9rem 0; margin: 0; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
footer dt { color: rgb(255 255 255 / 0.48); }
footer dd { color: var(--white); overflow-wrap: anywhere; }
footer a { color: #9ce7ff; }
.footer-copyright { margin: 2rem 0 0; color: rgb(255 255 255 / 0.72); }

@media (max-width: 700px) {
    .header, .content { width: min(100% - 2rem, var(--max-width)); }
    .header { padding-top: 1rem; }
    .logo { width: 7rem; height: 4rem; }
    .content { padding-block: 4rem 7rem; }
    .hero::after { right: 1.25rem; bottom: 1.5rem; }
    .buttons { align-items: stretch; flex-direction: column; max-width: 20rem; }
    .btn { width: 100%; }
    #company { grid-template-columns: 1fr; gap: 1.5rem; }
    #contacts { grid-template-columns: 1fr; }
    #company > h2, .company-intro, .company-tagline, .metrics { grid-column: 1; }
    .metrics, .kolyadichi-features, .strategy-list { grid-template-columns: 1fr; }
    .kolyadichi-capacities { grid-template-columns: 1fr 1fr; }
    .contacts-card { width: 100%; }
    footer dl { grid-template-columns: 1fr; }
    footer dt { padding-bottom: 0.2rem; border-bottom: 0; }
    footer dd { padding-top: 0.2rem; }
    .back-to-top { right: 0.75rem; bottom: 0.75rem; }
}

@media (min-width: 701px) and (max-width: 980px) {
    .metrics, .kolyadichi-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kolyadichi-capacities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
    .btn:hover, .metric-card:hover, .contact-card:hover { transform: none; }
}
