* { box-sizing: border-box; }
:root { --blue:#469bff; --ink:#102238; }
html { scroll-behavior:smooth; scroll-padding-top:90px; }
body { margin:0; color:var(--ink); background:#f3f7fc; font:17px/1.65 Arial,sans-serif; }
a { color:inherit; }
header,section,footer { padding-inline:max(6vw,calc((100vw - 1220px)/2)); }
header { display:flex; align-items:center; justify-content:space-between; gap:22px; padding-block:20px; color:white; background:#102238; border-bottom:1px solid #383b3e; }
.brand { font-size:28px; font-weight:900; letter-spacing:-1px; white-space:nowrap; text-decoration:none; }
.brand b { color:var(--blue); }
nav { display:flex; gap:32px; }
nav a { font-size:15px; text-decoration:none; }
nav a:hover { color:var(--blue); }
section { padding-block:90px; }
.hero { position:relative; isolation:isolate; min-height:630px; display:flex; align-items:center; color:white; background:#102238; overflow:hidden; }
.hero-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(8,27,51,.96),rgba(8,27,51,.86) 38%,rgba(8,27,51,.18)); }
.hero>div { max-width:750px; }
small { display:block; font-size:12px; font-weight:700; letter-spacing:2px; margin-bottom:24px; }
.hero small,.contact small { color:#8fc2ff; }
h1,h2 { line-height:1.08; letter-spacing:-2px; margin:0 0 26px; }
h1 { font-size:clamp(42px,5.6vw,78px); }
h1 em { font-style:normal; color:var(--blue); }
h2 { font-size:clamp(32px,3.6vw,48px); }
.hero p { max-width:490px; color:#d2d5d8; margin:24px 0 32px; }
.button,button { display:inline-flex; justify-content:center; padding:16px 27px; color:white; background:#1260cc; font:700 16px Arial,sans-serif; border:0; border-radius:5px; text-decoration:none; cursor:pointer; transition:background .2s,transform .2s; }
.button:hover,button:hover { background:#0c49a0; transform:translateY(-2px); }
dl { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:38px 0 0; }
.service-card { background:white; padding:30px; border-top:3px solid var(--blue); border-radius:3px 3px 10px 10px; box-shadow:0 8px 30px #18212a06; }
dt { font-size:21px; font-weight:bold; line-height:1.3; margin-bottom:16px; }
dd { margin:0; color:#5c6268; font-size:16px; }
#gallery { background:white; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:35px; }
.section-heading h2 { max-width:650px; }
.section-heading p { color:#646970; font-size:15px; margin:0 0 28px; }
.grid { display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:20px; margin-top:20px; }
figure { margin:0; border-radius:8px; overflow:hidden; background:#f4f4f2; }
figure img { display:block; width:100%; height:270px; object-fit:cover; transition:transform .3s; }
figure:hover img { transform:scale(1.025); }
figcaption { padding:16px 20px; font-size:16px; font-weight:bold; }
details { margin-top:24px; color:#62676c; font-size:13px; }
summary { cursor:pointer; }
.contact { display:grid; grid-template-columns:1fr 1fr; gap:9%; color:white; background:#102842; }
.contact>div>p { max-width:420px; color:#c0c5cb; }
.contact h2 { margin-top:20px; }
.contact a { text-decoration:none; }
.contact a:hover { text-decoration:underline; }
.contact small { margin-top:32px; }
.contact>div>small:first-child { margin-top:0; }
form { display:grid; gap:18px; background:#183651; padding:32px; border:1px solid #3b5975; border-radius:12px; }
label { display:grid; gap:8px; font-size:14px; font-weight:700; }
input,textarea { width:100%; min-width:0; background:#102842; border:1px solid #525a63; border-radius:5px; padding:13px 14px; color:white; font:16px/1.5 Arial,sans-serif; }
input::placeholder,textarea::placeholder { color:#9ea6af; }
textarea { resize:vertical; }
:focus-visible { outline:3px solid #8fc2ff; outline-offset:3px; }
form p:empty { display:none; }
form p { font-size:14px; margin:0; }
footer { background:#091a2e; padding-block:28px; color:#b5bdc6; display:flex; align-items:center; justify-content:space-between; gap:24px; font-size:13px; }
footer div { display:flex; gap:12px; }
footer div a { display:grid; place-items:center; border:1px solid #505962; border-radius:50%; width:40px; height:40px; text-decoration:none; }
@media(max-width:900px) { nav { gap:18px; } dl { gap:12px; }.service-card { padding:22px; }.contact { gap:30px; }.grid { grid-template-columns:repeat(3,1fr); }figure img { height:220px; }.section-heading { display:block; } }
@media(max-width:650px) { header { flex-wrap:wrap; gap:14px; padding-block:16px; }nav { width:100%; justify-content:space-between; gap:8px; }nav a { font-size:14px; }section { padding-block:52px; }.hero { min-height:590px; }.hero::after { background:linear-gradient(90deg,#081b33ed,#081b339c); }h1 { letter-spacing:-1.5px; }dl,.contact,.grid { grid-template-columns:1fr; }.service-card { padding:26px; }figure img { height:240px; }form { padding:24px; }footer { flex-wrap:wrap; }footer>span { order:3; width:100%; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; }* { transition:none!important; } }


.team { background: #eaf2fd; }
.team h2 { margin-bottom: 36px; }
.employee {
  width: min(100%, 420px);
  background: white;
  border: 1px solid #d0e0f5;
  border-radius: 14px;
  box-shadow: 0 12px 32px #1028420c;
}
.employee img {
  width: 100%;
  height: auto;
  display: block;
}
.employee:hover img { transform: none; }
.employee figcaption { padding: 24px; }
.employee h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.3;
  color: #102842;
}
.employee p { margin: 0; color: #165ba8; font-size: 17px; font-weight: 400; }
nav { flex-wrap: wrap; }
@media (max-width: 650px) {
  nav { justify-content: flex-start; gap: 10px 18px; }
  .employee h3 { font-size: 22px; }
}

.grid figure:first-child img { object-position: center 65%; }
.hero-photo { object-position: center 48%; }


.service-toggle {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  font: inherit;
  line-height: inherit;
  border-radius: 0;
}
.service-toggle:hover { background: transparent; transform: none; color: #1260cc; }
.service-price {
  display: block;
  margin-top: 20px;
  color: #1260cc;
  font-size: 27px;
  line-height: 1.3;
  font-weight: 700;
  visibility: hidden;
}
.service-card.price-open .service-price { visibility: visible; }
@media (hover: hover) {
  .service-card:hover .service-price { visibility: visible; }
}
.service-toggle:focus-visible { outline: 3px solid #469bff; outline-offset: 5px; }


.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-car { display: block; width: 48px; height: auto; flex-shrink: 0; }
@media (max-width: 650px) {
  .brand-car { width: 42px; }
}


.service-toggle, .service-price { text-decoration: none; }
.service-card:focus-within .service-price { visibility: visible; }
.grid figure { scroll-margin-top: 30px; }
.grid figure:target { outline: 3px solid #469bff; outline-offset: 5px; }
.grid figure:first-child img { object-position: center; }
@media (hover: none) {
  .service-price { visibility: visible; }
}


/* Меню остаётся у верхнего края при прокрутке. */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 18px #091a2e24;
}
html { scroll-padding-top: calc(var(--header-height, 130px) + 20px); }


nav a[aria-current="page"] { color: #8fc2ff; text-decoration: underline; text-underline-offset: 6px; }
.back-link { display: inline-block; margin-bottom: 22px; color: #165ba8; }
.workshop-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 38px; align-items: start; }
.workshop-gallery figure { background: white; border: 1px solid #d0e0f5; }
.workshop-gallery img { width: 100%; height: auto; display: block; }
.workshop-gallery figure:hover img { transform: none; }
.workshop-gallery a { display: block; }
@media (max-width: 650px) {
  .workshop-gallery { grid-template-columns: 1fr; gap: 20px; }
}
