@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 600;font-display:swap;src:url('fonts/golostext-normal-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 600;font-display:swap;src:url('fonts/golostext-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Literata';font-style:italic;font-weight:400;font-display:swap;src:url('fonts/literata-italic-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Literata';font-style:italic;font-weight:400;font-display:swap;src:url('fonts/literata-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Literata';font-style:normal;font-weight:400 600;font-display:swap;src:url('fonts/literata-normal-cyrillic.woff2') format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Literata';font-style:normal;font-weight:400 600;font-display:swap;src:url('fonts/literata-normal-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* ---------- Tokens ---------- */
:root{
  color-scheme: light only;
  --bg:#E6F1FB;        /* light sky blue */
  --surface:#FFFFFF;
  --ink:#1C2B3D;       /* deep blue-grey */
  --muted:#516378;
  --line:#C9DCEE;
  --accent:#2C6DA6;    /* clear light-blue family, dark enough for text */
  --accent-soft:#D3E7F8;
  --on-accent:#FFFFFF;
  --brand:#5AAEE8;     /* light sky blue */
  --glow:255,170,80;   /* candle light */
  --serif:'Literata', Georgia, 'Times New Roman', serif;
  --sans:'Golos Text', 'Segoe UI', Roboto, Arial, sans-serif;
  --measure:38rem;
  --wrap:72rem;
}

/* ---------- Base ---------- */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--sans);font-size:1.125rem;line-height:1.6;
}
img{max-width:100%;height:auto}
a{color:var(--accent);text-underline-offset:.18em}
a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:3px;border-radius:2px}
h1,h2,h3{font-family:var(--serif);font-weight:500;line-height:1.2;margin:0}
p{margin:0 0 1em}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.25rem}
.skip{position:absolute;left:-999px;top:.5rem;background:var(--surface);padding:.5rem 1rem;z-index:20}
.skip:focus{left:.5rem}

/* ---------- Header ---------- */
.site-header{border-bottom:1px solid var(--line);background:var(--bg)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4.5rem}
.brand{display:flex;align-items:baseline;gap:.6rem;text-decoration:none;color:var(--ink)}
.brand-name{font-family:var(--serif);font-style:italic;font-size:1.9rem;line-height:1}
.brand-sub{font-size:.9rem;color:var(--muted)}
.nav{display:flex;align-items:center;gap:1.5rem}
.nav a{color:var(--ink);text-decoration:none;font-size:1rem}
.nav a:hover{color:var(--accent)}
.nav .call{background:var(--accent);color:var(--on-accent);padding:.55rem 1rem;border-radius:4px;font-weight:500}
.nav .call:hover{color:var(--on-accent);filter:brightness(1.08)}
@media (max-width:760px){
  .nav a:not(.call){display:none}
  .brand-sub{display:none}
}

/* ---------- Hero ---------- */
.hero{padding:4.5rem 0 4rem}
.hero .wrap{display:grid;grid-template-columns:1.15fr .85fr;gap:4rem;align-items:end}
.hero h1{font-family:var(--sans);font-size:1rem;font-weight:500;color:var(--muted);margin-bottom:1.25rem}
.hero .lead{font-family:var(--serif);font-size:clamp(2.6rem,6vw,4.4rem);line-height:1.05;letter-spacing:-.01em;margin:0 0 1.5rem}
.hero p.intro{max-width:30rem;font-size:1.2rem;color:var(--muted)}

.phones{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:1.75rem}
.phones .label{font-size:1rem;margin:0 0 1rem;display:flex;align-items:center;gap:.6rem}
.dot{position:relative;width:.6rem;height:.6rem;border-radius:50%;background:var(--brand);flex:none}
.phone{
  display:block;font-family:var(--serif);font-size:clamp(2rem,4vw,2.6rem);
  font-variant-numeric:lining-nums tabular-nums;letter-spacing:.01em;
  color:var(--ink);text-decoration:none;padding:.35rem 0;border-top:1px solid var(--line)
}
.phone:first-of-type{border-top:0}
.phone:hover{color:var(--accent)}
.phones .note{font-size:.95rem;color:var(--muted);margin:1rem 0 0}
@media (max-width:860px){
  .hero{padding:2.5rem 0 3rem}
  .hero .wrap{grid-template-columns:1fr;gap:2rem}
}

/* ---------- Sections ---------- */
section{padding:4.5rem 0;border-top:1px solid var(--line)}
section h2{font-size:clamp(1.8rem,3.5vw,2.4rem);margin-bottom:1rem}
.section-intro{max-width:var(--measure);color:var(--muted);margin-bottom:2.5rem}

/* First steps: a real sequence, so it is numbered */
.steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:2rem;counter-reset:step}
.steps li{counter-increment:step;border-top:2px solid var(--accent);padding-top:1rem}
.steps li::before{content:counter(step);font-family:var(--serif);font-size:1.6rem;color:var(--accent);display:block;margin-bottom:.4rem}
.steps h3{font-family:var(--sans);font-size:1.1rem;font-weight:600;margin-bottom:.4rem}
.steps p{font-size:1rem;color:var(--muted);margin:0}
@media (max-width:900px){.steps{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.steps{grid-template-columns:1fr}}

/* Services */
.services{display:grid;grid-template-columns:repeat(3,1fr);gap:2.5rem 3rem}
.services h3{font-size:1.35rem;margin-bottom:.75rem}
.services ul{margin:0;padding:0;list-style:none}
.services li{padding:.45rem 0;border-bottom:1px solid var(--line);font-size:1.05rem}
@media (max-width:900px){.services{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.services{grid-template-columns:1fr}}

/* About */
.about .wrap{display:grid;grid-template-columns:1fr 1.4fr;gap:3rem}
.about .text{max-width:var(--measure);font-family:var(--serif);font-size:1.2rem;line-height:1.7}
.facts{list-style:none;margin:0;padding:0}
.facts li{display:flex;gap:1.25rem;padding:.8rem 0;border-bottom:1px solid var(--line)}
.facts strong{font-family:var(--serif);font-weight:500;font-size:1.4rem;min-width:4.5rem;color:var(--accent)}
@media (max-width:860px){.about .wrap{grid-template-columns:1fr}}

/* Offices */
.offices{display:grid;grid-template-columns:1fr 1fr 1fr;gap:2rem}
.office{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:1.5rem}
.office h3{font-size:1.5rem;margin-bottom:.5rem}
.office address{font-style:normal;margin-bottom:1rem}
.office p{margin:.25rem 0}
@media (max-width:860px){.offices{grid-template-columns:1fr}}

/* Footer */
.site-footer{border-top:1px solid var(--line);padding:2.5rem 0 6rem;font-size:.95rem;color:var(--muted)}
.site-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem}
.site-footer a{color:var(--muted)}

/* Mobile call bar: the one thing a visitor in a hurry needs */
.callbar{
  position:fixed;left:0;right:0;bottom:0;z-index:10;display:none;
  background:var(--accent);color:var(--on-accent);text-align:center;text-decoration:none;
  font-size:1.15rem;font-weight:500;padding:1rem;
  padding-bottom:calc(1rem + env(safe-area-inset-bottom,0px));
}
@media (max-width:760px){.callbar{display:block}}
@media (min-width:761px){.site-footer{padding-bottom:2.5rem}}

/* ---------- Images ---------- */
figure{margin:0}
.hero .wrap{align-items:stretch}
.hero-text{display:flex;flex-direction:column}
.hero-text .phones{margin-top:1.5rem;max-width:30rem}
.services-img img{display:block;width:100%;height:100%;object-fit:cover;border-radius:6px;aspect-ratio:4/3}
@media (max-width:600px){.services-img{display:none}}
.about-img{grid-column:1/-1;margin-top:1rem}
.about-img img{display:block;width:100%;aspect-ratio:16/7;object-fit:cover;border-radius:6px}
.about-img figcaption{font-size:.9rem;color:var(--muted);margin-top:.5rem}
.credits{flex-basis:100%;font-size:.85rem}


/* ---------- Visual effects ---------- */
/* Sticky header that gains a soft edge once the page scrolls */
.site-header{position:sticky;top:0;z-index:15;transition:box-shadow .3s ease, background-color .3s ease}
.site-header.scrolled{box-shadow:0 6px 24px -12px rgba(20,25,40,.25);background:color-mix(in srgb, var(--bg) 88%, transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
html{scroll-padding-top:5rem}

/* "On duty" dot: a slow ring, like a quiet heartbeat */
.dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--brand);animation:ping 2.6s ease-out infinite}
@keyframes ping{0%{transform:scale(1);opacity:.55}80%,100%{transform:scale(3);opacity:0}}

/* Candle photo: warm flickering light over the image */
.hero-img{position:relative;overflow:hidden;border-radius:6px}
.slide.candle::after{
  content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;
  background:radial-gradient(60% 45% at 50% 62%, rgba(var(--glow),.32), rgba(var(--glow),0) 70%);
  animation:flicker 5s infinite steps(1,end);
}
@keyframes flicker{
  0%{opacity:.85}7%{opacity:1}12%{opacity:.78}20%{opacity:.95}33%{opacity:.82}41%{opacity:1}
  55%{opacity:.88}63%{opacity:.76}72%{opacity:.97}84%{opacity:.84}92%{opacity:1}
}


/* One orchestrated page-load moment for the hero */
.js .hero-text > *{opacity:0;transform:translateY(14px);animation:rise .9s cubic-bezier(.2,.7,.2,1) forwards}
.js .hero-text > *:nth-child(1){animation-delay:.05s}
.js .hero-text > *:nth-child(2){animation-delay:.18s}
.js .hero-text > *:nth-child(3){animation-delay:.32s}
.js .hero-text > *:nth-child(4){animation-delay:.48s}
.js .hero-slides{animation:settle 2s cubic-bezier(.2,.7,.2,1) both}
@keyframes rise{to{opacity:1;transform:none}}
@keyframes settle{from{opacity:0;transform:scale(1.08)}to{opacity:1;transform:scale(1)}}

/* Steps: the lines draw in one after another, because it is a sequence */
.steps li{border-top:0;position:relative}
.steps li::after{content:"";position:absolute;left:0;top:0;height:2px;width:100%;background:var(--accent);transform-origin:left;transform:scaleX(1)}
.js .steps:not(.in) li::after{transform:scaleX(0)}
.js .steps li::after{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.js .steps li:nth-child(2)::after{transition-delay:.25s}
.js .steps li:nth-child(3)::after{transition-delay:.5s}
.js .steps li:nth-child(4)::after{transition-delay:.75s}

/* Mountain photo: a slow reveal and gentle drift */
.about-img{overflow:hidden;border-radius:6px}
.js .about-img:not(.in) img{clip-path:inset(0 0 100% 0)}
.js .about-img img{transition:clip-path 1.4s cubic-bezier(.2,.7,.2,1), transform 6s ease-out;transform:scale(1.06)}
.js .about-img.in img{clip-path:inset(0 0 0 0);transform:scale(1)}

/* Small responses to the visitor */
.phone{position:relative;transition:color .2s ease, padding-left .25s ease}
.phone:hover{padding-left:.4rem}
.services li{transition:background-color .2s ease, padding-left .2s ease}
.services li:hover{background:var(--accent-soft);padding-left:.5rem}
.services-img img{transition:transform .6s ease}
.services-img:hover img{transform:scale(1.03)}
.services-img{overflow:hidden;border-radius:6px}
.office{transition:border-color .2s ease, transform .2s ease}
.office:hover{border-color:var(--accent);transform:translateY(-2px)}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
  .js .hero-text > *{opacity:1;transform:none}
  .js .steps li::after{transform:scaleX(1)}
  .js .about-img img{clip-path:none;transform:none}
}

/* Light blue wash behind the hero */
.hero{background:linear-gradient(180deg, #CFE4F7 0%, var(--bg) 100%)}


/* ---------- Hero slideshow ---------- */
.hero-slides{position:relative;min-height:26rem;background:#0d0f14}
.hero-slides .slide{position:absolute;inset:0;margin:0;opacity:0;transition:opacity 1.6s ease}
.hero-slides .slide.is-active{opacity:1;z-index:1}
.hero-slides .slide img{width:100%;height:100%;object-fit:cover;display:block;border-radius:0;min-height:0}
.hero-slides .slide.is-active img{animation:kenburns 9s ease-out both}
@keyframes kenburns{from{transform:scale(1.1) translate(1.5%,1%)}to{transform:scale(1) translate(0,0)}}
.slide-dots{position:absolute;z-index:3;left:0;right:0;bottom:1rem;display:flex;justify-content:center;gap:.5rem}
.slide-dots button{width:.6rem;height:.6rem;border-radius:999px;border:0;padding:0;cursor:pointer;
  background:rgba(255,255,255,.55);transition:width .35s ease, background-color .35s ease}
.slide-dots button[aria-current="true"]{width:1.8rem;background:#fff}
@media (max-width:860px){.hero-slides{min-height:0;aspect-ratio:4/3}}

/* Mountain photo: gentle parallax-like drift once revealed */
.facts .count{font-variant-numeric:tabular-nums}

@media (prefers-reduced-motion: reduce){
  .hero-slides .slide.is-active img{animation:none}
}
