/* Torsionai.lt — hand-written, no build step. */
:root {
  --ink: #16191d;
  --ink-2: #22272d;
  --ink-3: #2e343b;
  --steel: #5b6570;
  --muted: #6b7280;
  --line: #e3e0da;
  --paper: #ffffff;
  --paper-2: #f5f3ef;
  --accent: #f5b301;
  --accent-ink: #1a1400;
  --accent-dark: #b98300;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22,25,29,.06), 0 8px 24px rgba(22,25,29,.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
svg { fill: currentColor; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #e3a600; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: saturate(140%) blur(8px); color: var(--ink); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; }
.brand-tld { color: var(--accent-dark); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: #3b4148; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.top-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang a { text-decoration: none; font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.lang a[aria-current] { background: var(--ink); color: #fff; }
.show-sm { display: none; }

/* Hero */
.hero { background: linear-gradient(180deg, #fbfaf7 0%, var(--paper-2) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding: clamp(48px, 7vw, 88px) 0; }
.kicker { display: inline-block; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.6rem); max-width: 15ch; margin-bottom: 20px; letter-spacing: -.02em; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: #3b4148; max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 36px; }
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.badges li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.badges strong { font-size: 1.2rem; color: var(--ink); }
.badges span { font-size: .88rem; color: var(--muted); line-height: 1.35; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 18px; box-shadow: 0 20px 50px rgba(22,25,29,.18); }
.hero-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: 18px; background: var(--accent); z-index: -1; }
.hero-photo { isolation: isolate; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ink); fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }

.type { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.type-img { background: #fff; border-radius: 10px; display: grid; place-items: center; aspect-ratio: 1; padding: 10px; }
.type-img img { max-height: 160px; width: auto; }
.type p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding: 24px 22px 22px; border-top: 4px solid var(--accent); background: var(--paper-2); border-radius: 0 0 var(--radius) var(--radius); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.6rem; color: var(--steel); margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery li { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--ink-2); }
.gallery a, .gallery picture { display: block; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,12,14,.9); }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; border-radius: 8px; }
.lightbox-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }

/* Prices */
.prices { max-width: 900px; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; background: var(--paper); }
.price-featured { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.price h3 { font-size: 1.2rem; }
.price-amount { font-size: 3rem; font-weight: 800; line-height: 1; margin: 6px 0 22px; letter-spacing: -.02em; }
.price-amount span { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.checks li { padding: 8px 0 8px 30px; border-top: 1px solid var(--line); position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 3px solid var(--accent-dark); border-bottom: 3px solid var(--accent-dark); transform: rotate(-45deg); }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.about p { color: #3b4148; font-size: 1.05rem; }
.about img { border-radius: var(--radius); background: #fff; padding: 20px; width: 100%; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.1rem; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--steel); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-right: 40px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
.contact-lead { color: var(--muted); font-size: 1.1rem; }
.contact dl { margin: 24px 0 30px; display: grid; gap: 16px; }
.contact dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); font-weight: 700; }
.contact dd { margin: 2px 0 0; font-size: 1.15rem; }
.contact dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact dd a:hover { border-color: var(--accent); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.3); }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); font-size: .9rem; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer strong { color: #fff; }

.fab { display: none; }

/* 404 */
.not-found { min-height: 100vh; display: grid; place-items: center; background: var(--ink); color: #fff; text-align: center; }
.not-found h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* Responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm, .show-sm { display: none; }
  .top-inner { gap: 12px; }
  .top-actions .btn { width: 40px; height: 40px; padding: 0; }
  .brand { font-size: 1.1rem; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .type { grid-template-columns: 110px 1fr; gap: 16px; padding: 18px; }
  .hero-cta .btn { width: 100%; }
  .badges { grid-template-columns: 1fr; }
  .hero-photo { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery li:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
  .price-amount { font-size: 2.5rem; }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; width: 58px; height: 58px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgba(0,0,0,.3); z-index: 60; }
  .fab svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
