/* Guarded.az — computer and phone tech support for everyday people.
   Layout: a sunny-yellow hero with a laptop and phone, two service lists (computer, phone),
   three plain steps, then a navy contact block. Turquoise appears only inside the logo. */

@font-face { font-family: "Sora AZ"; src: url("fonts/sora-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sora AZ"; src: url("fonts/sora-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Sora AZ"; src: url("fonts/sora-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* Russian page: Sora has no Cyrillic, so that page is set in Manrope. */
@font-face { font-family: "Manrope RU"; src: url("fonts/manrope-cyrillic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope RU"; src: url("fonts/manrope-cyrillic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope RU"; src: url("fonts/manrope-cyrillic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope RU"; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; 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+20BC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope RU"; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; 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+20BC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope RU"; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; 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+20BC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0B1D3A;
  --navy-deep: #071530;
  --navy-line: #24406B;
  --sun: #FFC233;
  --sun-soft: #FFF3D1;
  --paper: #F5F6F8;
  --white: #FFFFFF;
  --ink: #0B1D3A;
  --ink-soft: #33405A;
  --muted: #4A5568;
  --muted-dark: #B4C0D3;
  --rule: #E2E6EC;

  --display: "Sora AZ", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 112px);
  color-scheme: light;
}
html[lang="ru"] { --display: "Manrope RU", "Segoe UI", system-ui, -apple-system, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px var(--sun); border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 50;
  background: var(--sun); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 0.9688rem/1 var(--display); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--navy); }
.btn-sun:hover { background: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--navy); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) { color: var(--muted-dark); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.nav > a:not(.btn):hover { color: var(--white); }
.nav .btn { min-height: 42px; padding: 0 20px; }
.langs { list-style: none; margin: 0; padding: 0 0 0 20px; display: flex; gap: 2px; border-left: 1px solid var(--navy-line); }
.langs a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 0 6px;
  border-radius: 8px; color: var(--muted-dark); text-decoration: none; font-size: 0.8125rem; font-weight: 600; letter-spacing: .04em;
}
.langs a:hover { color: var(--white); }
.langs a[aria-current="page"] { color: var(--sun); background: rgba(255, 194, 51, .12); }

/* ---------- hero ---------- */
.hero { background: var(--sun); color: var(--navy); padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.kicker {
  display: inline-block; background: var(--navy); color: var(--white);
  padding: 7px 16px; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
}
.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.3rem, 4.9vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 15ch;
}
html[lang="ru"] .hero h1 { letter-spacing: -0.025em; max-width: 17ch; }
.hero h1 em {
  font-style: normal; white-space: nowrap;
  background: linear-gradient(transparent 58%, var(--white) 58%, var(--white) 92%, transparent 92%);
  padding-inline: .06em;
}
.hero .lead { margin-top: 22px; max-width: 36em; color: var(--ink-soft); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; font-size: 0.9688rem; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 20px; height: 20px; flex: none; }

.devices { justify-self: center; width: min(100%, 480px); }
.devices svg { width: 100%; height: auto; overflow: visible; }
.bar-fill { transform-box: fill-box; transform-origin: left center; animation: fill 1.8s cubic-bezier(.3, .7, .2, 1) .3s both; }
.pop { transform-box: fill-box; transform-origin: center; animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) 1.9s both; }
@keyframes fill { from { transform: scaleX(.32); } to { transform: scaleX(1); } }
@keyframes pop { from { transform: scale(.7); } to { transform: scale(1); } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-paper { background: var(--paper); }
.section-head { display: grid; gap: 14px; max-width: 44rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* price list */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.svc-card { background: var(--white); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(22px, 3vw, 32px); }
.svc-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; }
.badge { width: 48px; height: 48px; border-radius: 14px; background: var(--sun-soft); color: var(--navy); display: grid; place-items: center; flex: none; }
.badge svg { width: 26px; height: 26px; }
.svc-card-head h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--rule); }
.svc-list h4 { margin: 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.svc-list p { color: var(--muted); font-size: 0.9688rem; }
.svc-note { display: flex; gap: 10px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9375rem; }
.svc-note svg { width: 20px; height: 20px; flex: none; color: var(--navy); margin-top: 2px; }

/* how it works */
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; height: 4px; border-radius: 4px; background: var(--sun); }
.step { position: relative; display: grid; gap: 8px; align-content: start; }
.node {
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--sun);
  display: grid; place-items: center; font-size: 0.875rem; font-weight: 600;
  box-shadow: 0 0 0 6px var(--white); margin-bottom: 16px; position: relative; z-index: 1;
}
.step h3 { font-size: 1.3125rem; letter-spacing: -0.02em; }
.step p { color: var(--muted); }

.where { margin-top: clamp(48px, 6vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.where-card { background: var(--paper); border-radius: 20px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.where-card h3 { display: flex; align-items: center; gap: 14px; font-size: 1.3125rem; letter-spacing: -0.02em; }
.where-card h3 .badge { background: var(--sun); }
.where-card p { color: var(--muted); }
.where-card dl { margin: 6px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; }
.where-card dt { color: var(--muted); font-size: 0.9375rem; }
.where-card dd { margin: 0; font-weight: 600; font-size: 0.9375rem; }

/* why */
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.why li { display: grid; gap: 10px; align-content: start; }
.why .badge { margin-bottom: 6px; }
.why h3 { font-size: 1.1875rem; letter-spacing: -0.015em; }
.why p { color: var(--muted); }

/* contact */
.contact { background: var(--navy); color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact .section-head p { color: var(--muted-dark); }
.mail { display: grid; gap: 6px; padding-top: 20px; border-top: 1px solid var(--navy-line); }
.mail span { color: var(--muted-dark); font-size: 0.9375rem; }
.mail a { color: var(--sun); font-size: 1.25rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.mail a:hover { text-decoration: underline; text-underline-offset: 5px; }

.form { background: var(--white); color: var(--ink); border-radius: 20px; padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--display); color: var(--ink);
  background: var(--white); border: 1px solid #BFC8D6; border-radius: 12px; padding: 12px 14px;
}
.field input, .field select { min-height: 50px; }
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; box-shadow: 0 0 0 5px var(--sun-soft); border-color: var(--navy); }
.form .btn-navy { width: 100%; min-height: 54px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.8125rem; color: var(--muted); }
.form-status { font-size: 0.9375rem; min-height: 1.5em; }
.form-status.ok { color: #1E7A4C; font-weight: 500; }
.form-status.err { color: #B3261E; font-weight: 500; }

/* footer */
.site-footer { background: var(--navy-deep); color: var(--muted-dark); padding-block: 40px 32px; font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 28px; }
.footer-top, .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--navy-line); font-size: 0.875rem; }
.site-footer img { width: 132px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .maker a { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: var(--navy-line); text-underline-offset: 4px; }
.site-footer .maker a:hover { color: var(--sun); text-decoration-color: var(--sun); }

/* 404 */
.lost { min-height: 70vh; background: var(--sun); display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.lost .code { font-size: 0.9375rem; font-weight: 600; }
.lost h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.03em; margin: 10px 0 14px; }
.lost p { color: var(--ink-soft); margin-bottom: 28px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .svc-grid, .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
}
@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav > a:not(.btn) { display: none; }
  .langs { padding-left: 0; border-left: 0; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .devices { width: min(86vw, 360px); justify-self: start; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-left: 50px; }
  .steps::before { left: 13px; right: auto; top: 14px; bottom: 14px; width: 4px; height: auto; }
  .node { position: absolute; left: -50px; top: 0; margin: 0; }
  .where { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .brand img { width: 112px; }
  .nav > .btn { display: none; }
  .langs a { min-width: 34px; padding: 0 4px; }
  .hero h1 em { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar-fill, .pop { animation: none; }
}
