/* Baltic Solar Frame – site styles. Brand: black + green #29b554, frame-line motif from the logo. */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(../fonts/inter-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(../fonts/inter-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Barlow SC'; font-weight: 700; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow SC'; font-weight: 700; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JB Mono'; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'JB Mono'; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: 'JB Mono'; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491; }

:root {
  --ink: #0d1110; --ink2: #3a4441; --muted: #66716d; --line: #dfe4e2; --paper: #ffffff; --snow: #f4f6f5; --steel: #c9d0cd;
  --green: #29b554; --green-d: #1c8a3e; --green-l: #e6f6ec; --night: #0c120f; --night2: #151d19; --blue: #2c6fb3;
  --head: 'Barlow SC', 'Inter', 'Arial Narrow', sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JB Mono', ui-monospace, Menlo, monospace;
  --wrap: 1200px; --r: 12px; --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.04; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.tag { font: 500 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green-d); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.tag::before { content: ''; width: 34px; height: 0; border-top: 2px solid currentColor; box-shadow: 0 5px 0 -0px var(--ink); }
.dark .tag { color: var(--green); }
.dark .tag::before { box-shadow: 0 5px 0 0 #fff; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink2); max-width: 62ch; }
.dark .lead { color: #c5cfca; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem/1 var(--body); padding: 16px 22px; border-radius: 10px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; min-height: 52px; }
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: #04150a; }
.btn-green:hover { background: #33c75f; color: #04150a; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #26302c; color: #fff; }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-line:hover { background: rgba(255,255,255,.08); color: inherit; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand img { width: 170px; height: auto; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; }
.nav a { font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current=page] { background: var(--snow); color: var(--green-d); }
.head-cta { margin-inline-start: 8px; padding: 12px 16px; min-height: 44px; font-size: .95rem; }
.lang { position: relative; }
.lang > button { font: 600 .9rem var(--body); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; cursor: pointer; display: flex; gap: 6px; align-items: center; color: var(--ink); min-height: 44px; }
.lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 34px rgba(0,0,0,.12); min-width: 190px; display: none; }
.lang.open ul { display: block; }
.lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 7px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.lang li a:hover, .lang li a[aria-current=true] { background: var(--green-l); }
.lang li a span { font: 500 .75rem var(--mono); color: var(--muted); }
.burger { display: none; background: none; border: 0; padding: 10px; margin-inline-start: auto; cursor: pointer; min-height: 44px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
@media (max-width: 1060px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; padding: 14px var(--gut) 24px; border-bottom: 1px solid var(--line); display: none; gap: 2px; max-height: calc(100dvh - 72px); overflow: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .head-cta { margin: 10px 0 0; justify-content: center; }
  .lang { margin-inline-start: 0; }
}

/* hero */
.hero { position: relative; color: #fff; background: var(--night); overflow: hidden; }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(8,12,10,.92) 0%, rgba(8,12,10,.72) 45%, rgba(8,12,10,.15) 100%); }
.hero-in { position: relative; z-index: 2; padding-block: clamp(80px, 13vw, 170px) clamp(60px, 9vw, 120px); display: grid; gap: 28px; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { color: #d6ded9; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 10px; padding: 0; list-style: none; font: 500 .82rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #cdd6d1; }
.trust li { display: flex; align-items: center; gap: 9px; }
.trust li::before { content: ''; width: 9px; height: 9px; background: var(--green); transform: rotate(45deg); }
.page-hero { position: relative; color: #fff; background: var(--night); overflow: hidden; }
.page-hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,12,10,.9), rgba(8,12,10,.35)); }
.page-hero .wrap { position: relative; z-index: 2; padding-block: clamp(70px, 10vw, 130px) clamp(40px, 6vw, 70px); }
.crumbs { font: 500 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #b9c5bf; margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; list-style: none; }
.crumbs a { color: #b9c5bf; text-decoration: none; }
.crumbs li + li::before { content: '/'; margin-inline-end: 8px; opacity: .6; }

/* sections */
section { padding-block: clamp(64px, 9vw, 120px); }
.snow { background: var(--snow); }
.dark { background: var(--night); color: #eef3f0; }
.dark h2, .dark h3 { color: #fff; }
.frame-rule { height: 14px; position: relative; margin: 0; border: 0; }
.frame-rule::before, .frame-rule::after { content: ''; position: absolute; left: 0; right: 0; height: 3px; }
.frame-rule::before { top: 2px; background: var(--ink); }
.frame-rule::after { top: 9px; background: var(--green); }
.sec-head { display: grid; gap: 8px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 780px; }

/* product cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 18px 50px rgba(10,20,15,.12); transform: translateY(-3px); }
.card picture img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; color: var(--ink2); font-size: .98rem; }
.card-body li { display: flex; gap: 10px; }
.card-body li::before { content: ''; flex: none; width: 14px; height: 2px; background: var(--green); margin-top: .8em; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-num { font: 500 .75rem var(--mono); color: var(--muted); letter-spacing: .1em; }

/* engineering */
.eng { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.eng picture img { border-radius: var(--r); aspect-ratio: 4/3; object-fit: cover; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); overflow: hidden; margin-top: 28px; }
.specs div { background: var(--night2); padding: 20px; }
.specs b { display: block; font: 700 1.9rem/1 var(--head); color: #fff; margin-bottom: 6px; }
.specs span { font-size: .9rem; color: #aab6b0; }
@media (max-width: 860px) { .eng { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { padding: 28px 24px 24px 0; border-bottom: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: '0' counter(s); font: 500 .85rem var(--mono); color: var(--green-d); display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--ink2); margin: 0; font-size: .98rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 10px; }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: .88rem; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* countries */
.countries { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.countries li { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .95rem; background: #fff; }
.countries li b { font: 500 .75rem var(--mono); color: var(--muted); margin-inline-end: 6px; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 50px 18px 20px; list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 20px; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--body); color: var(--green-d); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 20px 18px; color: var(--ink2); }

/* contact block */
.contact-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: #fff; color: var(--ink); border-radius: var(--r); padding: 28px; border: 1px solid var(--line); }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--night); color: var(--green); display: grid; place-items: center; font: 700 1.9rem var(--head); }
.contact-card h3 { margin: 0 0 4px; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cta-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .contact-card { grid-template-columns: 1fr; } }

/* product page */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.benefit { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: #fff; }
.benefit h3 { font-size: 1.25rem; margin-bottom: 8px; }
.benefit p { margin: 0; color: var(--ink2); font-size: .98rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.spec-table th, .spec-table td { text-align: start; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 600; width: 44%; color: var(--ink2); }
.designer-wrap { background: var(--night); padding-block: clamp(40px, 6vw, 70px); color: #fff; }
.designer-frame { width: 100%; height: min(880px, 92dvh); border: 0; border-radius: var(--r); background: #eef1f3; display: block; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.designer-note { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.designer-note p { margin: 0; color: #c5cfca; }

/* forms */
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; padding: 13px 14px; border: 1px solid #cfd6d3; border-radius: 9px; background: #fff; color: var(--ink); min-height: 50px; width: 100%; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:user-invalid, .form textarea:user-invalid { border-color: #c8372d; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.form .check input { width: 20px; min-height: 20px; margin-top: 3px; accent-color: var(--green-d); }
.hp { position: absolute; left: -5000px; }
.form-msg { padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-msg.ok { background: var(--green-l); color: #135c2a; }
.form-msg.err { background: #fdecea; color: #8c1d16; }

/* footer */
.site-foot { background: var(--night); color: #b8c4be; padding-block: 64px 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-foot h4 { color: #fff; font: 500 .78rem var(--mono); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.site-foot a { color: #dfe7e3; text-decoration: none; }
.site-foot a:hover { color: var(--green); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.credit a { color: #fff; font-weight: 600; }
.credit a:hover { color: var(--green); }
.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 12px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* cookie banner */
.cookie { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 90; max-width: 560px; background: #fff; color: var(--ink); border-radius: 14px; padding: 20px; box-shadow: 0 18px 60px rgba(0,0,0,.25); border: 1px solid var(--line); display: none; }
.cookie.show { display: block; }
.cookie p { font-size: .92rem; margin-bottom: 14px; }
.cookie .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 12px 16px; min-height: 44px; font-size: .92rem; }
.lang-hint { background: var(--ink); color: #fff; font-size: .92rem; }
.lang-hint .wrap { display: flex; gap: 14px; align-items: center; justify-content: center; padding-block: 8px; flex-wrap: wrap; }
.lang-hint a { color: var(--green); font-weight: 600; }
.lang-hint button { background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* designer on phones: open full screen instead of a cramped embed */
.designer-mobile { display: none; position: relative; border-radius: var(--r); overflow: hidden; text-decoration: none; }
.designer-mobile img { aspect-ratio: 4/3; object-fit: cover; width: 100%; filter: brightness(.7); }
.designer-mobile .dm-cta { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--green); color: #04150a; font-weight: 700; padding: 16px 22px; border-radius: 12px; display: flex; gap: 10px; align-items: center; white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.designer-mobile .dm-cta svg { width: 18px; height: 18px; }
@media (max-width: 820px) { .designer-frame { display: none; } .designer-mobile { display: block; } .designer-note .btn { display: none; } }
