:root{
  --bg:#f6f2eb;
  --paper:#fffaf2;
  --ink:#191817;
  --muted:#69635b;
  --line:#dfd2c1;
  --accent:#b88445;
  --accent-dark:#7c552b;
  --deep:#121212;
  --deep-2:#1d1a17;
  --white:#ffffff;
  --shadow:0 24px 70px rgba(25,24,23,.12);
  --radius:26px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Montserrat, Arial, sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  padding-bottom:0;
}
a{color:inherit;text-decoration:none}
.container{width:min(1180px, calc(100% - 40px)); margin:0 auto}
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,242,235,.90);
  backdrop-filter: blur(18px);
  border-bottom:1px solid rgba(223,210,193,.7);
}
.nav-wrap{min-height:78px; display:flex; align-items:center; justify-content:space-between; gap:24px}
.brand{display:flex; align-items:center; gap:13px; min-width:0}
.brand-mark{
  width:48px; height:48px; border-radius:16px;
  display:grid; place-items:center;
  background:linear-gradient(135deg, var(--deep), #39312a);
  color:var(--accent);
  font-weight:800;
  font-size:26px;
  font-family:"Source Serif 4", serif;
  box-shadow:0 12px 30px rgba(0,0,0,.14);
}
.brand-text{display:flex; flex-direction:column; letter-spacing:.06em}
.brand-text strong{font-size:17px; line-height:1}
.brand-text small{font-size:10px; color:var(--muted); margin-top:4px}
.main-nav{display:flex; align-items:center; gap:18px; font-size:13px; font-weight:700}
.main-nav a{color:#38332d}
.main-nav a:hover,.main-nav a.active{color:var(--accent-dark)}
.nav-cta{
  padding:12px 16px;
  border:1px solid var(--accent);
  border-radius:999px;
  color:var(--accent-dark)!important;
}
.menu-toggle{display:none; border:0; background:transparent; cursor:pointer}
.menu-toggle span{display:block; width:26px; height:2px; background:var(--ink); margin:5px 0}
.hero{
  position:relative;
  min-height:760px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:
    radial-gradient(circle at 75% 30%, rgba(184,132,69,.20), transparent 34%),
    linear-gradient(135deg, #f6f2eb 0%, #eee2d1 100%);
}
.hero-bg{
  position:absolute; inset:auto -10% -25% auto;
  width:650px; height:650px;
  border:1px solid rgba(124,85,43,.22);
  border-radius:50%;
}
.hero-bg:before,.hero-bg:after{
  content:""; position:absolute; inset:70px;
  border:1px solid rgba(124,85,43,.22);
  border-radius:50%;
}
.hero-bg:after{inset:150px}
.hero-grid{position:relative; display:grid; grid-template-columns:1.14fr .86fr; gap:56px; align-items:center}
.eyebrow{
  margin:0 0 14px;
  color:var(--accent-dark);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:800;
  font-size:12px;
}
h1,h2,h3{margin:0; line-height:1.08}
h1,h2{font-family:"Source Serif 4", Georgia, serif}
h1{font-size:clamp(42px, 6vw, 76px); max-width:980px}
h2{font-size:clamp(32px, 4vw, 52px)}
h3{font-size:21px}
.lead{font-size:19px; color:#4b453f; max-width:760px; margin:26px 0 0}
.hero-actions{display:flex; gap:14px; margin-top:34px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:52px;
  padding:14px 24px;
  border-radius:999px;
  font-weight:800;
  border:1px solid transparent;
  cursor:pointer;
  transition:.2s ease;
}
.btn-primary{background:var(--deep); color:var(--white); box-shadow:0 16px 38px rgba(0,0,0,.18)}
.btn-primary:hover{transform:translateY(-2px); background:#000}
.btn-secondary{border-color:var(--accent); color:var(--accent-dark); background:rgba(255,255,255,.38)}
.btn-secondary:hover{background:var(--paper)}
.hero-card{
  background:rgba(255,250,242,.82);
  border:1px solid rgba(223,210,193,.86);
  border-radius:var(--radius);
  padding:34px;
  box-shadow:var(--shadow);
}
.hero-card h2{font-size:34px}
.hero-card p{color:var(--muted)}
.hero-card ul{margin:24px 0 0; padding:0; list-style:none}
.hero-card li{
  padding:13px 0 13px 28px;
  border-top:1px solid var(--line);
  position:relative;
  font-weight:600;
}
.hero-card li:before{
  content:""; position:absolute; left:0; top:21px;
  width:10px; height:10px; border-radius:50%; background:var(--accent);
}
.line-art{
  height:160px;
  border-radius:22px;
  background:linear-gradient(135deg, var(--deep), #332b24);
  position:relative;
  overflow:hidden;
  margin-bottom:28px;
}
.line-art span{
  position:absolute; border:1px solid rgba(184,132,69,.75);
  transform:rotate(-18deg);
}
.line-art span:nth-child(1){width:220px;height:70px;left:20px;top:30px}
.line-art span:nth-child(2){width:250px;height:80px;left:80px;top:58px}
.line-art span:nth-child(3){width:160px;height:160px;right:20px;top:-30px;border-radius:50%}
.line-art span:nth-child(4){height:220px;left:58%;top:-20px}
.page-hero{
  padding:104px 0 74px;
  background:
    radial-gradient(circle at 86% 0%, rgba(184,132,69,.22), transparent 32%),
    linear-gradient(135deg, #f6f2eb 0%, #eee2d1 100%);
  border-bottom:1px solid var(--line);
}
.page-hero p:not(.eyebrow){font-size:19px; color:var(--muted); max-width:850px}
.stats{background:var(--deep); color:var(--white)}
.stats-grid{display:grid; grid-template-columns:repeat(4,1fr)}
.stats-grid div{
  padding:30px 28px;
  border-left:1px solid rgba(255,255,255,.11);
}
.stats-grid div:last-child{border-right:1px solid rgba(255,255,255,.11)}
.stats-grid strong{display:block; font-size:28px; color:var(--accent)}
.stats-grid span{font-size:14px; color:rgba(255,255,255,.76)}
.section{padding:104px 0}
.section-head{max-width:780px; margin-bottom:42px}
.section-head p{color:var(--muted)}
.home-grid,.split{display:grid; grid-template-columns:.9fr 1.1fr; gap:70px}
.rich-text-light p{font-size:18px; color:var(--muted); margin-top:0}
.text-link,.card-link{display:inline-block; margin-top:8px; color:var(--accent-dark); font-weight:800}
.cards-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px}
.services-grid{grid-template-columns:repeat(4,1fr)}
.home-services-grid{grid-template-columns:repeat(4,1fr)}
.service-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:24px;
  padding:30px;
  min-height:250px;
  transition:.2s ease;
}
.service-card:hover{transform:translateY(-4px); box-shadow:var(--shadow)}
.service-main{
  border-color:rgba(184,132,69,.55);
  background:linear-gradient(180deg, #fffaf2 0%, #f8efe2 100%);
}
.icon{
  display:inline-grid; place-items:center;
  width:48px; height:48px;
  border-radius:15px;
  background:var(--deep);
  color:var(--accent);
  font-weight:800;
  margin-bottom:28px;
}
.service-card p{color:var(--muted)}
.muted{background:#eee4d6}
.section-dark{background:var(--deep); color:var(--white)}
.section-dark .eyebrow{color:#d2a66f}
.rich-text p{font-size:18px; color:rgba(255,255,255,.75); margin-top:0}
.info-panel{display:grid; grid-template-columns:.85fr 1.15fr; gap:40px; align-items:start}
.team-section{background:linear-gradient(180deg, #f6f2eb 0%, #eee4d6 100%)}
.team-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px}
.team-card{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:24px;
  padding:30px;
  min-height:285px;
  transition:.2s ease;
}
.team-card:hover{transform:translateY(-4px); box-shadow:var(--shadow)}
.team-lead{border-color:rgba(184,132,69,.65)}
.avatar{
  width:64px; height:64px; border-radius:20px;
  display:grid; place-items:center;
  background:var(--deep); color:var(--accent);
  font-weight:800; letter-spacing:.06em;
  margin-bottom:24px;
}
.team-card .role{color:var(--accent-dark); font-weight:800; margin:10px 0 12px}
.team-card p:last-child{color:var(--muted)}
.service-detail-grid{display:grid; grid-template-columns:1fr 360px; gap:36px; align-items:start}
.detail-panel,.side-cta,.note-card,.legal-text{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:26px;
  padding:34px;
}
.check-list{list-style:none; padding:0; margin:28px 0 0}
.check-list li{
  position:relative;
  padding:14px 0 14px 34px;
  border-top:1px solid var(--line);
  font-weight:600;
}
.check-list li:before{
  content:"";
  position:absolute;
  left:0;
  top:22px;
  width:11px;
  height:11px;
  border-radius:50%;
  background:var(--accent);
}
.side-cta{position:sticky; top:104px}
.side-cta p{color:var(--muted)}
.legal-text{max-width:900px}
.legal-text h2{font-size:30px; margin-top:28px}
.legal-text h2:first-child{margin-top:0}
.legal-text p{color:var(--muted)}
.portfolio-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px}
.portfolio-grid article{
  background:var(--paper);
  border-radius:25px;
  overflow:hidden;
  border:1px solid var(--line);
}
.portfolio-grid h3,.portfolio-grid p{padding:0 26px}
.portfolio-grid h3{margin-top:24px}
.portfolio-grid p{padding-bottom:24px; color:var(--muted)}
.portfolio-visual{
  height:250px; position:relative; overflow:hidden;
  background:linear-gradient(135deg, #1b1a19, #493924);
}
.portfolio-visual:before{
  content:""; position:absolute; inset:36px;
  border:1px solid rgba(255,255,255,.28);
}
.portfolio-visual:after{
  content:""; position:absolute; width:180px; height:180px;
  border:1px solid rgba(184,132,69,.85);
  border-radius:50%;
  right:-40px; top:-40px;
}
.visual-2{background:linear-gradient(135deg, #221f1a, #65503a)}
.visual-3{background:linear-gradient(135deg, #171717, #4a3f35)}
.note-card p:not(.eyebrow){color:var(--muted); font-size:18px}
.cta-band{
  padding:64px 0;
  background:linear-gradient(135deg, var(--deep), #35291e);
  color:var(--white);
}
.cta-grid{display:flex; align-items:center; justify-content:space-between; gap:24px}
.cta-grid h2{max-width:760px}
.contact-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:50px; align-items:start}
.contact-list{
  margin-top:28px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:24px;
  padding:26px;
}
.contact-list.compact{margin-top:0}
.contact-list p{margin:12px 0}
.contact-departments{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin-top:22px;
}
.contact-card{
  display:flex;
  gap:16px;
  align-items:flex-start;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:22px;
  padding:20px;
}
.contact-card h3{font-size:18px; margin-bottom:10px}
.contact-card p{margin:7px 0; color:var(--muted)}
.contact-avatar{
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:var(--deep);
  color:var(--accent);
  font-weight:800;
  letter-spacing:.04em;
}
.contact-form{
  background:var(--deep);
  color:var(--white);
  border-radius:26px;
  padding:30px;
  box-shadow:var(--shadow);
}
.contact-form label{display:block; font-weight:700; margin-bottom:16px}
.contact-form input,.contact-form select,.contact-form textarea{
  display:block; width:100%; margin-top:8px; padding:14px 14px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  background:rgba(255,255,255,.08);
  color:var(--white);
  font:inherit;
}
.contact-form select option{color:var(--ink)}
.contact-form small{display:block; color:rgba(255,255,255,.62); margin-top:14px}
.quick-actions{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:60;
  display:flex;
  gap:8px;
  background:rgba(18,18,18,.92);
  border:1px solid rgba(255,255,255,.12);
  padding:8px;
  border-radius:999px;
  box-shadow:0 18px 50px rgba(0,0,0,.28);
}
.quick-actions a{
  color:#fff;
  font-size:13px;
  font-weight:800;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
}
.quick-actions a:hover{background:var(--accent)}
.site-footer{
  padding:48px 0 84px;
  background:#0f0f0f;
  color:rgba(255,255,255,.76);
}
.footer-grid{display:grid; grid-template-columns:1.15fr .95fr 1fr; gap:30px}
.footer-grid a,.footer-grid span{display:block; margin:8px 0}
.footer-brand{color:var(--white)}
.footer-grid strong{color:var(--white)}
@media (max-width: 1100px){
  .services-grid,.home-services-grid{grid-template-columns:repeat(2,1fr)}
  .main-nav{gap:12px; font-size:12px}
}
@media (max-width: 960px){
  .menu-toggle{display:block}
  .main-nav{
    position:absolute; left:20px; right:20px; top:78px;
    display:none; flex-direction:column; align-items:flex-start;
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:20px;
    padding:22px;
    box-shadow:var(--shadow);
  }
  .main-nav.open{display:flex}
  .hero{min-height:auto; padding:80px 0}
  .hero-grid,.split,.home-grid,.contact-grid,.info-panel,.service-detail-grid{grid-template-columns:1fr}
  .stats-grid,.cards-grid,.team-grid,.portfolio-grid,.footer-grid{grid-template-columns:1fr 1fr}
  .side-cta{position:static}
  .cta-grid{display:block}
  .cta-grid .btn{margin-top:24px}
}
@media (max-width: 720px){
  .contact-departments{grid-template-columns:1fr}
}
@media (max-width: 560px){
  body{padding-bottom:60px}
  .container{width:min(100% - 28px, 1180px)}
  .nav-wrap{min-height:70px}
  .brand-mark{width:42px; height:42px}
  .brand-text strong{font-size:15px}
  h1{font-size:40px}
  h2{font-size:32px}
  .hero-card{padding:24px}
  .page-hero{padding:76px 0 56px}
  .stats-grid,.cards-grid,.services-grid,.home-services-grid,.team-grid,.portfolio-grid,.footer-grid{grid-template-columns:1fr}
  .section{padding:72px 0}
  .quick-actions{
    left:10px;
    right:10px;
    bottom:10px;
    justify-content:space-between;
  }
  .quick-actions a{
    flex:1;
    text-align:center;
    padding:11px 8px;
  }
  .site-footer{padding-bottom:96px}
}


/* V9 logo integration */
.brand-logo{
  display:block;
  height:54px;
  width:auto;
  max-width:245px;
  object-fit:contain;
}

.footer-brand .brand-logo{
  height:62px;
  max-width:280px;
  filter:none;
}

.about-hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:46px;
  align-items:center;
}

.about-logo-card{
  background:rgba(255,255,255,.72);
  border:1px solid var(--line);
  border-radius:26px;
  padding:28px;
  box-shadow:var(--shadow);
}

.about-logo-card img{
  width:100%;
  height:auto;
  display:block;
}

.about-public{
  background:
    radial-gradient(circle at 12% 20%, rgba(184,132,69,.13), transparent 28%),
    var(--bg);
}

.process{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.process-step{
  padding:26px;
  border-radius:23px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
}

.process-step span{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:50%;
  background:var(--accent);
  color:var(--white);
  font-weight:800;
  margin-bottom:22px;
}

.process-step p{
  color:rgba(255,255,255,.72);
}

.values-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.values-grid article{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px;
}

.values-grid p,
.company-note{
  color:var(--muted);
}

@media (max-width: 1100px){
  .brand-logo{
    height:48px;
    max-width:210px;
  }
}

@media (max-width: 960px){
  .about-hero-grid,
  .process,
  .values-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 560px){
  .brand-logo{
    height:40px;
    max-width:176px;
  }

  .footer-brand .brand-logo{
    height:46px;
    max-width:210px;
  }

  .about-hero-grid,
  .process,
  .values-grid{
    grid-template-columns:1fr;
  }
}


/* V12 bilingual language switch */
.language-switch{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,250,242,.62);
}

.language-switch a{
  padding:6px 9px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:var(--muted);
}

.language-switch a.active-lang{
  background:var(--deep);
  color:var(--white);
}

@media (max-width: 960px){
  .language-switch{
    margin-top:6px;
  }
}


/* V13 – typography, spacing and alignment refinement */
:root{
  --container: 1180px;
  --section-y: 96px;
  --section-y-sm: 68px;
}

html{
  font-size:16px;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

body{
  font-size:16px;
  letter-spacing:-0.005em;
  overflow-x:hidden;
}

p{
  line-height:1.72;
}

img{
  max-width:100%;
}

/* Header / navigation */
.site-header{
  min-height:76px;
}

.nav-wrap{
  min-height:76px;
  align-items:center;
  gap:18px;
}

.brand{
  flex:0 0 auto;
}

.brand-logo{
  height:52px;
  max-width:230px;
}

.main-nav{
  flex:1 1 auto;
  justify-content:flex-end;
  gap:14px;
  font-size:12.5px;
  line-height:1;
  white-space:nowrap;
}

.main-nav a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
}

.nav-cta{
  padding:10px 15px;
}

.language-switch{
  flex:0 0 auto;
  margin-left:2px;
}

.language-switch a{
  min-height:auto;
  line-height:1;
}

/* Typography hierarchy */
h1,h2,h3{
  letter-spacing:-0.035em;
  text-wrap:balance;
}

h1{
  font-size:clamp(40px, 5.2vw, 68px);
  line-height:0.98;
}

.page-hero h1{
  max-width:980px;
}

h2{
  font-size:clamp(30px, 3.4vw, 48px);
  line-height:1.04;
}

h3{
  font-size:20px;
  line-height:1.18;
  letter-spacing:-0.018em;
}

.eyebrow{
  font-size:11.5px;
  line-height:1.35;
  margin-bottom:13px;
}

.lead,
.page-hero p:not(.eyebrow){
  font-size:18px;
  line-height:1.72;
}

.section-head{
  max-width:840px;
  margin-bottom:38px;
}

.section-head p{
  font-size:17px;
  line-height:1.72;
}

/* Layout rhythm */
.section{
  padding:var(--section-y) 0;
}

.page-hero{
  padding:92px 0 68px;
}

.hero{
  min-height:720px;
}

.hero-grid{
  gap:48px;
}

.hero-card{
  padding:32px;
}

.hero-card h2{
  font-size:32px;
}

.split,
.home-grid,
.contact-grid,
.info-panel,
.service-detail-grid{
  gap:44px;
}

.rich-text-light p,
.rich-text p{
  font-size:17px;
  line-height:1.78;
}

/* Cards */
.cards-grid{
  gap:20px;
}

.services-grid{
  grid-template-columns:repeat(4, minmax(0,1fr));
}

.home-services-grid{
  grid-template-columns:repeat(4, minmax(0,1fr));
}

.service-card,
.team-card,
.values-grid article,
.detail-panel,
.side-cta,
.note-card,
.legal-text,
.contact-list,
.contact-card{
  border-radius:22px;
}

.service-card{
  min-height:270px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:28px;
}

.service-card p{
  margin-bottom:0;
  color:var(--muted);
}

.service-card .card-link{
  margin-top:auto;
  padding-top:16px;
}

.icon{
  margin-bottom:24px;
  flex:0 0 auto;
}

.team-grid{
  align-items:stretch;
}

.team-card{
  display:flex;
  flex-direction:column;
}

.team-card p:last-child{
  margin-bottom:0;
}

/* Detail pages */
.service-detail-grid{
  grid-template-columns:minmax(0,1fr) 350px;
}

.check-list li{
  line-height:1.65;
}

/* Footer */
.site-footer{
  padding:46px 0 88px;
}

.footer-grid{
  grid-template-columns:1.05fr 1.05fr 1fr;
  gap:34px;
}

.footer-grid a,
.footer-grid span,
.footer-grid p{
  line-height:1.6;
}

.footer-brand .brand-logo{
  height:58px;
}

/* Contact page */
.contact-departments{
  grid-template-columns:repeat(2, minmax(0,1fr));
}

.contact-card{
  min-height:132px;
}

.contact-form label{
  line-height:1.45;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  line-height:1.45;
}

/* Russian pages need a little more room for longer words */
html[lang="ru"] .main-nav{
  font-size:12px;
  gap:10px;
}

html[lang="ru"] h1{
  font-size:clamp(38px, 4.8vw, 62px);
}

html[lang="ru"] h2{
  font-size:clamp(29px, 3.1vw, 45px);
}

html[lang="ru"] .service-card{
  min-height:300px;
}

html[lang="ru"] .brand-logo{
  max-width:220px;
}

/* Visual polish */
.btn{
  letter-spacing:-0.01em;
}

.btn-primary,
.btn-secondary{
  white-space:normal;
  text-align:center;
}

.quick-actions{
  max-width:calc(100% - 24px);
}

/* Accessibility focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:3px solid rgba(184,132,69,.45);
  outline-offset:3px;
}

/* Tablet */
@media (max-width: 1180px){
  .main-nav{
    gap:10px;
    font-size:12px;
  }

  .brand-logo{
    max-width:200px;
  }

  .services-grid{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 1060px){
  .main-nav{
    gap:8px;
    font-size:11.5px;
  }

  .brand-logo{
    max-width:185px;
  }

  .nav-cta{
    padding:9px 12px;
  }
}

/* Mobile menu breakpoint */
@media (max-width: 960px){
  .site-header{
    min-height:70px;
  }

  .nav-wrap{
    min-height:70px;
  }

  .brand-logo{
    height:46px;
    max-width:210px;
  }

  .main-nav{
    position:absolute;
    left:20px;
    right:20px;
    top:70px;
    white-space:normal;
    gap:8px;
    font-size:14px;
    line-height:1.35;
  }

  .main-nav a{
    min-height:auto;
    padding:8px 0;
  }

  .language-switch{
    margin:8px 0 4px;
  }

  .hero{
    padding:72px 0;
  }

  .hero-grid,
  .split,
  .home-grid,
  .contact-grid,
  .info-panel,
  .service-detail-grid,
  .about-hero-grid{
    grid-template-columns:1fr;
    gap:34px;
  }

  .stats-grid,
  .cards-grid,
  .services-grid,
  .home-services-grid,
  .team-grid,
  .portfolio-grid,
  .footer-grid,
  .process,
  .values-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .service-card{
    min-height:250px;
  }

  html[lang="ru"] .service-card{
    min-height:270px;
  }
}

/* Small mobile */
@media (max-width: 640px){
  :root{
    --section-y:70px;
  }

  .container{
    width:min(100% - 28px, var(--container));
  }

  h1{
    font-size:clamp(36px, 10vw, 46px);
    line-height:1.02;
  }

  h2{
    font-size:clamp(28px, 7.5vw, 36px);
  }

  .lead,
  .page-hero p:not(.eyebrow){
    font-size:16.5px;
  }

  .hero-card{
    padding:24px;
  }

  .page-hero{
    padding:70px 0 52px;
  }

  .stats-grid,
  .cards-grid,
  .services-grid,
  .home-services-grid,
  .team-grid,
  .portfolio-grid,
  .footer-grid,
  .process,
  .values-grid,
  .contact-departments{
    grid-template-columns:1fr;
  }

  .service-card,
  html[lang="ru"] .service-card{
    min-height:auto;
    padding:24px;
  }

  .contact-card{
    min-height:auto;
  }

  .footer-brand .brand-logo{
    height:48px;
  }

  .quick-actions{
    left:10px;
    right:10px;
    bottom:10px;
    border-radius:18px;
  }
}

/* Very small screens */
@media (max-width: 390px){
  .brand-logo{
    max-width:172px;
    height:39px;
  }

  .menu-toggle span{
    width:24px;
  }

  .quick-actions a{
    font-size:12px;
  }
}
