/* QATORTOL site styles.
 * Follows the Google HTML/CSS Style Guide: 2-space indent, one declaration per line,
 * declarations sorted alphabetically, single quotes, leading zeros, lowercase hex.
 * Palette: Samarkand dome turquoise on a cool willow-leaf light background.
 */

/* Fonts (self-hosted, SIL Open Font License) */

@font-face {
  font-display: swap;
  font-family: 'golos text';
  font-weight: 400;
  src: url(/assets/fonts/golos-text-latin-400-normal.woff2) format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'golos text';
  font-weight: 500;
  src: url(/assets/fonts/golos-text-latin-500-normal.woff2) format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'golos text';
  font-weight: 600;
  src: url(/assets/fonts/golos-text-latin-600-normal.woff2) format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'unbounded';
  font-weight: 500;
  src: url(/assets/fonts/unbounded-latin-500-normal.woff2) format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'unbounded';
  font-weight: 600;
  src: url(/assets/fonts/unbounded-latin-600-normal.woff2) format('woff2');
}

/* Tokens */

:root {
  --bg: #f5f7f4;
  --brand: #0e7480;
  --brand-deep: #0a5961;
  --brand-tint: #e3f0f0;
  --display: 'unbounded', system-ui, sans-serif;
  --ink: #17231f;
  --line: #d3dbd5;
  --muted: #52605a;
  --surface: #fff;
  --text: 'golos text', system-ui, -apple-system, 'segoe ui', sans-serif;
  --wrap: 1160px;
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  margin: 0;
}

svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  max-width: 17ch;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
  max-width: 24ch;
}

h3 {
  font: 600 1.125rem/1.35 var(--text);
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  margin: 0 auto;
  max-width: var(--wrap);
  padding: 0 24px;
}

.skip-link {
  background: var(--surface);
  left: -999px;
  padding: 8px 12px;
  position: absolute;
  top: 8px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  max-width: 60ch;
}

/* Header */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  min-height: 76px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.mark {
  color: var(--brand);
  fill: none;
  height: 30px;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 2.2;
  width: 30px;
}

.mark-water {
  opacity: 0.5;
  stroke-width: 1.2;
}

.brand-name {
  font: 600 1.05rem/1 var(--display);
  letter-spacing: 0.06em;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.nav a:hover,
.nav [aria-current='page'] {
  color: var(--brand-deep);
}

.nav [aria-current='page'] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}

.lang {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 2px;
  padding: 2px;
}

.lang a,
.lang-current {
  border-radius: 4px;
  color: var(--muted);
  font: 500 0.85rem/1 var(--text);
  padding: 7px 10px;
  text-decoration: none;
}

.lang-current {
  background: var(--ink);
  color: var(--bg);
}

/* Buttons and links */

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 36px;
}

.btn {
  background: var(--brand);
  border-radius: 6px;
  color: #fff;
  display: inline-block;
  font-weight: 600;
  padding: 14px 22px;
  text-decoration: none;
}

.btn:hover {
  background: var(--brand-deep);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--brand-deep);
}

.btn-light:hover {
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.text-link {
  font-weight: 600;
}

/* Hero */

.hero {
  padding: 72px 0 64px;
}

.hero-inner {
  align-items: end;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.hero .lead {
  margin-top: 24px;
}

.willows {
  animation: grow 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  color: var(--brand);
  fill: none;
  height: auto;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 3;
  width: 100%;
}

.willows-water {
  opacity: 0.35;
  stroke-width: 1.5;
}

.willows-water-far {
  opacity: 0.2;
  stroke-width: 1;
}

@keyframes grow {
  from {
    clip-path: inset(100% 0 0 0);
  }

  to {
    clip-path: inset(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .willows {
    animation: none;
  }
}

/* Sections */

.section {
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

.section-head {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--muted);
  max-width: 52ch;
}

.svc-list {
  column-gap: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.svc-list li {
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
}

.svc-list h3 a {
  color: var(--ink);
  text-decoration: none;
}

.svc-list h3 a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.svc-list p {
  color: var(--muted);
  margin-top: 8px;
  max-width: 48ch;
}

.more {
  margin-top: 28px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  border-top: 2px solid var(--brand);
  counter-increment: step;
  padding-top: 18px;
}

.steps li::before {
  color: var(--brand);
  content: counter(step);
  display: block;
  font: 500 2.2rem/1 var(--display);
  margin-bottom: 16px;
}

.steps p,
.principles p {
  color: var(--muted);
  margin-top: 8px;
}

.principles {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cta {
  background: var(--brand-deep);
  color: #fff;
  padding: 64px 0;
}

.cta-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.cta p {
  color: #e3f0f0;
  margin-top: 12px;
  max-width: 52ch;
}

/* Inner pages */

.page-head {
  padding: 64px 0 48px;
}

.page-head .lead {
  margin-top: 20px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.toc a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: inline-block;
  font-size: 0.95rem;
  padding: 8px 12px;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--brand);
  color: var(--brand-deep);
}

.svc {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  padding: 56px 0;
  scroll-margin-top: 16px;
}

.result {
  border-left: 3px solid var(--brand);
  margin-top: 20px;
  max-width: 40ch;
  padding-left: 16px;
}

.result strong {
  color: var(--brand-deep);
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.svc-body p {
  max-width: 62ch;
}

.svc-body h3 {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 24px;
}

.ticks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.ticks li {
  border-bottom: 1px solid var(--line);
  padding: 10px 0 10px 28px;
  position: relative;
}

.ticks li::before {
  background: var(--brand);
  content: '';
  height: 2px;
  left: 4px;
  position: absolute;
  top: 1.15em;
  width: 10px;
}

.two-col {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

.prose {
  max-width: 66ch;
}

.prose p + p {
  margin-top: 16px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}

.contact-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-label + .contact-value {
  margin-top: 6px;
}

.contact-value + .contact-label {
  margin-top: 24px;
}

.contact-value a {
  font: 500 clamp(1.15rem, 2.4vw, 1.6rem)/1.3 var(--display);
  overflow-wrap: anywhere;
}

.legal-body {
  max-width: 72ch;
}

.legal-body h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-top: 40px;
  max-width: none;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin-top: 14px;
}


/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 40px 0 32px;
}

.footer-inner,
.footer-legal {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  justify-content: space-between;
}

.footer-brand .brand {
  margin-bottom: 10px;
}

.footer-legal {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
}

.footer-nav,
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted);
}

.footer-nav a,
.legal-nav a {
  display: inline-block;
  padding: 4px 0;
}

/* 404 */

.notfound {
  padding: 96px 0 120px;
}

.notfound p {
  color: var(--muted);
  margin-top: 16px;
}

.notfound-uz {
  margin-top: 40px;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner,
  .two-col,
  .svc {
    gap: 32px;
    grid-template-columns: 1fr;
  }

  .willows {
    max-width: 420px;
  }

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

  .principles {
    gap: 28px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    gap: 12px 20px;
    padding-bottom: 12px;
    padding-top: 14px;
  }

  .nav {
    gap: 22px;
    margin-left: 0;
    order: 3;
    overflow-x: auto;
    width: 100%;
  }

  .lang {
    margin-left: auto;
  }

  .hero {
    padding: 44px 0 48px;
  }

  .section {
    padding: 56px 0;
  }

  .svc-list,
  .steps {
    grid-template-columns: 1fr;
  }

  .svc {
    padding: 44px 0;
  }
}
