/* ANGЕLOV FORSTOR — Premium website styles
   Edit colors and typography in :root. Sections are grouped below. */
:root {
  --navy: #10243b;
  --deep: #09182a;
  --orange: #ed6b28;
  --paper: #ffffff;
  --mist: #f4f6f8;
  --ink: #172b40;
  --muted: #657485;
  --border: #e5eaf0;
  --radius: 12px;
  --width: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 10px; background: white; padding: 12px; z-index: 100; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; }
.brand strong { display: block; font-size: 15px; letter-spacing: .045em; font-weight: 850; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.navigation { display: flex; align-items: center; gap: 27px; }
.navigation a { position: relative; font-size: 13px; font-weight: 650; color: #526274; padding: 10px 0; transition: color .2s; }
.navigation a:hover, .navigation a.active { color: var(--navy); }
.navigation a.active::after { content: ''; position: absolute; height: 2px; background: var(--orange); bottom: 1px; left: 0; right: 0; }
.menu-toggle { display: none; background: transparent; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 2px; margin: 5px 0; background: var(--navy); }

/* Type and buttons */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.6vw, 47px); line-height: 1.16; font-weight: 760; }
p { line-height: 1.75; }
.eyebrow { font-size: 11px; letter-spacing: .22em; font-weight: 850; color: var(--orange); margin-bottom: 19px; }
.eyebrow.light { color: #ffae79; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 49px; padding: 0 22px; border-radius: 5px; font-size: 13px; font-weight: 750; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-accent { background: var(--orange); color: white; }
.button-accent:hover { background: #d85d20; box-shadow: 0 12px 24px #0002; }
.button-primary { background: var(--navy); color: white; }
.button-primary:hover { background: #233e5c; }
.button-outline { color: white; border: 1px solid #ffffff70; }
.button-outline:hover { background: #ffffff15; }
.text-link { font-size: 13px; font-weight: 800; border-bottom: 1px solid var(--orange); padding-bottom: 7px; }
.section { padding: 104px 0; }
.muted-section { background: var(--mist); }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading > p:last-child { color: var(--muted); }
.section-heading.split { display: flex; align-items: end; justify-content: space-between; gap: 40px; max-width: none; }
.section-heading.split > p { max-width: 350px; margin-bottom: 8px; }

/* Homepage hero */
.hero { position: relative; min-height: min(690px, 78vh); display: flex; align-items: center; overflow: hidden; color: white; background: var(--deep); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #08192b4a 0%, #08192b10 70%); }
.hero-inner { position: relative; z-index: 1; padding: 100px 0 115px; }
.hero-text { max-width: 690px; animation: rise .8s both; }
.hero h1 { font-size: clamp(39px, 5.2vw, 68px); line-height: 1.13; font-weight: 780; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: #fff; }
.hero-text > p:not(.eyebrow) { color: #e3eaf2; font-size: clamp(16px, 1.6vw, 19px); max-width: 510px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-indicator { position: absolute; z-index: 1; bottom: 24px; right: max(32px, calc((100vw - var(--width)) / 2)); font-size: 10px; letter-spacing: .16em; color: #e1e9f2; }
.trust-line { border-bottom: 1px solid var(--border); }
.trust-items { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-items > span { padding: 26px 18px; color: var(--orange); font-size: 12px; border-right: 1px solid var(--border); }
.trust-items > span:first-child { padding-left: 0; }
.trust-items > span:last-child { border-right: 0; }
.trust-items strong { color: var(--navy); margin-left: 13px; font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 275px; display: flex; flex-direction: column; padding: 31px; border: 1px solid var(--border); border-radius: var(--radius); background: white; transition: border .25s, transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-5px); border-color: #ed6b2866; box-shadow: 0 22px 45px #10243b0c; }
.feature-number, .category-index { font-size: 10px; letter-spacing: .13em; color: var(--orange); font-weight: 850; }
.feature-card h3 { font-size: 23px; margin: 35px 0 10px; }
.feature-card p { color: var(--muted); font-size: 14px; }
.feature-arrow { margin-top: auto; font-size: 22px; }
.projects-section { background: var(--mist); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { background: white; border-radius: var(--radius); overflow: hidden; }
.project-card img { width: 100%; height: 260px; object-fit: cover; transition: transform .5s; }
.project-card:hover img { transform: scale(1.045); }
.project-caption { padding: 23px; }
.project-caption span { color: var(--orange); font-size: 10px; letter-spacing: .15em; font-weight: 800; }
.project-caption h3 { font-size: 20px; margin: 9px 0 0; }

/* Inner pages */
.page-intro { padding: 104px 0 86px; background: var(--mist); border-bottom: 1px solid var(--border); }
.page-intro h1 { max-width: 880px; font-size: clamp(40px, 5.4vw, 69px); line-height: 1.12; margin-bottom: 20px; }
.intro-lead { color: var(--muted); max-width: 680px; font-size: 17px; }
.category-index { font-size: 12px; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.category-card { padding: 32px; min-height: 265px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; transition: border .2s, transform .2s; }
.category-image { display: block; width: 100%; height: 210px; object-fit: contain; background: #fff; border-radius: 8px; margin-bottom: 24px; }
.category-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.category-card h2 { font-size: 24px; margin: 31px 0 9px; }
.category-card p { font-size: 14px; color: var(--muted); }
.category-card a { font-size: 14px; font-weight: 800; margin-top: auto; }
.category-card a span { color: var(--orange); margin-left: 8px; }
.note { margin-top: 28px; border-left: 3px solid var(--orange); padding: 18px 22px; background: var(--mist); font-size: 13px; color: var(--muted); line-height: 1.7; }
.editorial { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 70px; }
.editorial-photo { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); }
.editorial p:not(.eyebrow) { color: var(--muted); }
.editorial .button { margin-top: 16px; }
.services-list { border-top: 1px solid var(--border); }
.service-row { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 36px 0; border-bottom: 1px solid var(--border); }
.service-row > span:first-child { font-size: 13px; color: var(--orange); font-weight: 800; }
.service-row h2 { font-size: 26px; margin-bottom: 7px; }
.service-row p { color: var(--muted); max-width: 680px; margin-bottom: 0; }
.service-plus { color: var(--orange); font-size: 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item { display: block; position: relative; aspect-ratio: 1.25; overflow: hidden; background: var(--mist); border-radius: 7px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item span { position: absolute; bottom: 16px; left: 16px; color: white; font-size: 11px; letter-spacing: .12em; background: #10243bc9; padding: 10px 12px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1200px); max-height: 92vh; }
.lightbox::backdrop { background: #071321e8; }
.lightbox img { display: block; max-height: 80vh; max-width: 90vw; object-fit: contain; touch-action: pan-y pinch-zoom; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: absolute; z-index: 1; display: grid; place-items: center; background: #fff; color: var(--deep); border: 0; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; box-shadow: 0 2px 12px #0003; }
.lightbox-close { top: 8px; right: 8px; }
.lightbox-prev, .lightbox-next { top: calc(50% - 20px); transform: translateY(-50%); font-size: 20px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox button:hover { background: #ffe4d5; }
.lightbox button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.lightbox-counter { margin: 0; padding: 12px; color: white; text-align: center; font-size: 14px; }

/* Contact and footer */
.contact-section { background: white; }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }
.contact-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; display: flex; flex-direction: column; align-items: start; gap: 25px; }
.contact-panel > div { display: grid; gap: 7px; }
.detail-label { color: var(--orange); font-size: 10px; letter-spacing: .15em; font-weight: 800; }
.contact-panel strong, .contact-panel a:not(.button) { font-size: 15px; font-weight: 650; overflow-wrap: anywhere; }
.map-panel { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--mist); }
.map-panel iframe { width: 100%; height: 285px; border: 0; display: block; }
.map-panel > a { display: block; padding: 15px 20px; font-size: 12px; font-weight: 750; }
.footer { background: var(--deep); color: #e6edf5; padding: 30px 0 16px; border-top: 2px solid var(--orange); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; align-items: start; }
.footer-brand strong { display: block; color: #fff; letter-spacing: .07em; font-size: 14px; }
.footer-brand p { margin: 8px 0 0; color: #aebdce; font-size: 13px; line-height: 1.6; }
.footer-label { display: block; margin-bottom: 10px; color: #aebdce; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.footer address { font-style: normal; font-size: 13px; line-height: 1.8; }
.footer-contact a { display: block; width: fit-content; max-width: 100%; margin: 0 0 5px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.footer-contact a:last-child { margin-bottom: 0; }
.footer a:hover { color: #ffab7d; }
.footer-bottom { margin-top: 23px; padding-top: 13px; border-top: 1px solid #ffffff1f; }
.footer-bottom small { color: #9baec2; font-size: 12px; line-height: 1.6; }
@media (max-width: 760px) {
  .footer { padding-top: 25px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
/* Motion and responsive */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s, transform .65s; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 1000px) {
  .navigation { gap: 15px; }
  .brand strong { font-size: 13px; }
  .feature-grid, .category-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card:last-child { display: none; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 36px, var(--width)); }
  .header-inner { min-height: 72px; }
  .brand img { width: 42px; height: 42px; }
  .menu-toggle { display: block; }
  .navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 16px 20px 22px; background: white; border-bottom: 1px solid var(--border); box-shadow: 0 20px 30px #10243b15; flex-direction: column; align-items: stretch; gap: 3px; }
  .navigation.is-open { display: flex; }
  .navigation a { padding: 12px; }
  .navigation a.active::after { left: 12px; right: auto; width: 30px; }
  .hero { min-height: 610px; }
  .hero-image { object-position: 56% center; }
  .hero::after { background: linear-gradient(90deg, #08192bcb, #08192b66); }
  .hero-inner { padding: 105px 0; }
  .hero h1 { font-size: clamp(38px, 8vw, 54px); }
  .hero-indicator { right: 20px; }
  .trust-items { grid-template-columns: 1fr; padding: 10px 0; }
  .trust-items > span { padding: 12px 0; border-right: 0; }
  .section { padding: 70px 0; }
  .page-intro { padding: 72px 0 65px; }
  .section-heading.split { display: block; }
  .section-heading.split > p { max-width: 650px; }
  .feature-grid, .category-grid, .project-grid, .gallery-grid { grid-template-columns: 1fr; }
  .project-card:last-child { display: block; }
  .feature-card { min-height: 230px; }
  .editorial, .contact-layout { grid-template-columns: 1fr; gap: 25px; }

  .editorial-photo { height: 300px; }
  .service-row { grid-template-columns: 35px 1fr; gap: 12px; }
  .service-row h2 { font-size: 21px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .contact-panel { padding: 25px; }
}
@media (max-width: 420px) {
  .brand strong { font-size: 11px; }
  .brand small { font-size: 9px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .gallery-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* Quote request form */
#kontakt-forma { scroll-margin-top: 100px; }
.contact-form { max-width: 850px; padding: clamp(22px, 4vw, 40px); background: white; border: 1px solid var(--border); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.contact-form label { display: flex; flex-direction: column; gap: 9px; color: var(--deep); font-size: 14px; font-weight: 700; }
.contact-form label > span { display: contents; color: var(--orange); }
.contact-form input, .contact-form select, .contact-form textarea { box-sizing: border-box; width: 100%; min-width: 0; padding: 13px 14px; font: inherit; font-weight: 400; color: var(--deep); background: #fff; border: 1px solid #b8c4ce; border-radius: 7px; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.form-wide { grid-column: 1 / -1; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-help { margin: 22px 0; font-size: 13px; color: var(--muted); }
.form-status { margin: 16px 0 0; font-size: 14px; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #a32222; }
.form-status[data-state="success"] { color: #18663b; }
.contact-form button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }