/* Minimal, self-contained styling (no external CSS/JS) */
:root{
  --maxw: 980px;
  --pad: 18px;
  --border: #e6e6e6;
  --muted: #666;
  --bg: #fafafa;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: auto; } /* no smooth scrolling */
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

a{ color: inherit; text-decoration: underline; }
a:hover{ text-decoration-thickness: 2px; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

header{
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.nav .brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav .brand img{
  height: 36px;
  width: auto;
}
.nav ul{
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.nav li a{
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
}
.nav li a:hover{
  background: var(--bg);
}

section{
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type{ border-bottom: none; }

.hero{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}
.hero img{
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.kicker{
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px 0;
}
h1{ font-size: 30px; line-height: 1.15; margin: 0 0 14px 0; }
h2{ font-size: 24px; margin: 0 0 14px 0; }
p{ margin: 0 0 12px 0; color: #222; }

.btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #111;
  color: #fff;
  text-decoration: none;
}
.btn:hover{ filter: brightness(1.05); }

.grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.card img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 10px;
}
.card h3{
  margin: 0 0 10px 0;
  font-size: 18px;
}
.card ul{
  margin: 0;
  padding-left: 18px;
}
.muted{ color: var(--muted); }

.table-wrap{
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}
table{
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
}
th, td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th{ background: var(--bg); }
tr:last-child td{ border-bottom: none; }

blockquote{
  margin: 0 0 12px 0;
  padding: 12px 14px;
  border-left: 4px solid #111;
  background: var(--bg);
  border-radius: 10px;
}

footer{
  padding: 26px 0 40px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
}

section {
  scroll-margin-top: 45px;
}

main{
  padding-bottom: 60vh; /* можно 30–60vh */
}

.nav ul{
  width: 100%;
}

.nav ul .lang-switch{
  margin-left: auto;
}

.lang-switch img{
  vertical-align: middle;
  border-radius: 4px;
}

/* Mobile improvements (no JS) */
@media (max-width: 600px){

  :root{
    --pad: 14px;
  }

  header{
    position: sticky;
    top: 0;
  }

  /* Make sections not hide behind sticky header */
  section{
    scroll-margin-top: 76px;
    padding: 22px 0;
  }

  /* NAV: two-row layout */
  .nav{
    align-items: flex-start;
    padding: 8px 0;
  }

  .nav ul{
    width: 100%;
    gap: 8px;
  }

  .nav li a{
    padding: 8px 10px;
    border: 1px solid var(--border);
    background: var(--bg);
  }

  /* If you have language icon pushed right with margin-left:auto,
     it can jump to a new line on mobile — make it normal */
  .nav ul .lang-switch{
    margin-left: 0;
  }

  /* Typography */
  h1{
    font-size: 24px;
    line-height: 1.2;
  }
  h2{
    font-size: 20px;
  }

  /* Hero: single column + smaller gap */
  .hero{
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .btn{
    width: 100%;
    text-align: center;
    padding: 12px 14px;
  }

  /* Cards spacing */
  .card{
    padding: 12px;
  }
  .card h3{
    font-size: 17px;
  }

  /* Tables: already scrollable, just make it feel nicer */
  .table-wrap{
    border-radius: 12px;
  }
  table{
    min-width: 520px; /* keep horizontal scroll on very small screens */
  }

  /* Footer spacing */
  footer{
    padding: 18px 0 26px 0;
  }
}
/* Pricing table: better mobile layout */
@media (max-width: 600px){
  .table-wrap{
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  table{
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px; /* gaps between "cards" */
  }

  thead{
    display: none; /* hide header row on mobile */
  }

  tbody tr{
    display: block;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
  }

  tbody td{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: none;
    border-bottom: 1px solid var(--border);
  }

  tbody td:last-child{
    border-bottom: none;
  }

  tbody td::before{
    content: attr(data-label);
    color: var(--muted);
    font-weight: 600;
  }
}



