:root {
  --blue: #4176e6;
  --ink: #33374a;
  --muted: #33374a;
  --line: rgba(65, 118, 230, 0.18);
  --panel: rgba(255, 255, 255, 0.58);
  --panel-strong: rgba(255, 255, 255, 0.70);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 51% 16%, rgba(65, 118, 230, 0.30), transparent 30%),
    radial-gradient(circle at 18% 48%, rgba(65, 118, 230, 0.16), transparent 25%),
    radial-gradient(circle at 84% 36%, rgba(211, 227, 255, 0.86), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #eef5ff 58%, #f8fbff 100%);
  font-family: "Segoe UI", Aptos, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(65, 118, 230, 0.35);
  outline-offset: 3px;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px 0 20px;
}

.nav,
.hero,
.footer,
.legal-shell {
  width: min(1150px, calc(100vw - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 178px;
  height: auto;
  display: block;
}

.nav-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.hero {
  display: grid;
  align-content: center;
  gap: 26px;
  padding: 12px 0 6px;
}

.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 18px;
  row-gap: 18px;
  min-height: 190px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 22px 58px rgba(65, 118, 230, 0.10);
  backdrop-filter: blur(14px);
}

.service-card-primary {
  background: var(--panel-strong);
}

.service-card-secret {
  grid-column: 1 / -1;
  min-height: 132px;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 12px 24px rgba(65, 118, 230, 0.14);
}

.service-content {
  min-width: 0;
}

.service-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 8px;
}

.service-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 650;
}

.service-card p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.store-rating {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}

.store-rating img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(65, 118, 230, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.60);
  border-color: rgba(65, 118, 230, 0.18);
}

.details {
  grid-column: 2;
  margin: 2px 0 0;
}

.details summary {
  display: none;
}

.details p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.status-pill {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: var(--blue);
  background: rgba(65, 118, 230, 0.09);
  border: 1px solid rgba(65, 118, 230, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid rgba(65, 118, 230, 0.15);
  color: var(--ink);
  font-size: 12px;
}

.footer section {
  display: grid;
  gap: 10px;
}

.footer strong {
  color: var(--ink);
  font-size: 13px;
}

.footer-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer a {
  color: var(--blue);
  font-weight: 650;
}

.footer .footer-heading-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.footer-documents {
  justify-items: start;
}

.footer-contacts {
  justify-items: start;
}

.footer-legal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: var(--ink);
}

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10;
  width: min(430px, calc(100vw - 44px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(65, 118, 230, 0.20);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 60px rgba(65, 118, 230, 0.18);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 3px;
}

.cookie-banner p {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.cookie-banner a {
  color: var(--blue);
  font-weight: 650;
}

.cookie-accept {
  min-height: 38px;
  padding: 0 16px;
}

.legal-page {
  min-height: 100vh;
}

.legal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 22px;
  padding: 18px 0 20px;
}

.legal-content {
  display: grid;
  align-content: center;
  gap: 28px;
}

.legal-content h1 {
  max-width: none;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  font-weight: 500;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.legal-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 22px 58px rgba(65, 118, 230, 0.10);
  backdrop-filter: blur(14px);
}

.legal-card h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 650;
}

.legal-card-wide {
  grid-column: 1 / -1;
  min-height: 118px;
}

.legal-card-empty {
  background: rgba(255, 255, 255, 0.42);
}

.legal-list {
  display: grid;
  gap: 8px;
}

.legal-list a {
  display: inline-flex;
  width: fit-content;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.legal-list a:hover,
.legal-list a:focus-visible {
  color: var(--blue);
}

.news-page {
  min-height: 100vh;
}

.news-shell {
  width: min(1180px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 38px;
  display: grid;
  align-content: start;
  gap: 22px;
}

.news-nav {
  width: 100%;
  margin: 0;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.back-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(65, 118, 230, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.60);
  font-size: 22px;
  line-height: 1;
}

.news-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  align-items: end;
  min-height: 248px;
  padding: 34px;
  border: 1px solid rgba(65, 118, 230, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 74% 8%, rgba(65, 118, 230, 0.20), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.46));
  box-shadow: 0 28px 74px rgba(65, 118, 230, 0.10);
  backdrop-filter: blur(18px);
}

.news-heading h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.98;
  font-weight: 520;
}

.news-heading h1 span {
  display: block;
  margin-top: 12px;
  color: rgba(51, 55, 74, 0.74);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.16;
  font-weight: 500;
}

.news-heading p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.54;
}

.news-heading-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.news-heading-note span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(65, 118, 230, 0.16);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(51, 55, 74, 0.76);
  background: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  font-weight: 650;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.news-card {
  min-width: 0;
}

.news-card a {
  min-height: 238px;
  height: 100%;
  display: grid;
  grid-template-rows: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(65, 118, 230, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 50px rgba(65, 118, 230, 0.08);
  backdrop-filter: blur(16px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.news-card a:hover,
.news-card a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(65, 118, 230, 0.34);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 62px rgba(65, 118, 230, 0.14);
}

.news-card[data-featured="true"] {
  grid-column: span 2;
  grid-row: span 2;
}

.news-card[data-featured="true"] a {
  grid-template-rows: minmax(170px, 1fr) auto;
  min-height: 488px;
  padding: 18px;
}

.news-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 78% 22%, rgba(65, 118, 230, 0.30), transparent 35%),
    linear-gradient(135deg, rgba(65, 118, 230, 0.13), rgba(255, 255, 255, 0.88));
}

.news-card-media i {
  position: absolute;
  left: calc(15px + var(--i) * 25px);
  bottom: calc(11px + var(--i) * 4px);
  width: 36px;
  height: 28px;
  border-radius: 8px;
  background: rgba(65, 118, 230, 0.26);
  box-shadow: 0 10px 22px rgba(65, 118, 230, 0.12);
}

.news-card[data-featured="true"] .news-card-media i {
  left: calc(24px + var(--i) * 44px);
  bottom: calc(22px + var(--i) * 8px);
  width: 72px;
  height: 54px;
  border-radius: 16px;
}

.news-card-text {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.news-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 650;
}

.news-card[data-featured="true"] h2 {
  max-width: 640px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  font-weight: 560;
}

.news-card p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: rgba(51, 55, 74, 0.82);
  font-size: 13px;
  line-height: 1.42;
}

.news-card[data-featured="true"] p {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.52;
  -webkit-line-clamp: 5;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 4px;
}

.page-step,
.page-current {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.page-step {
  border: 1px solid rgba(65, 118, 230, 0.18);
  background: rgba(255, 255, 255, 0.60);
}

.page-step.is-disabled {
  color: rgba(51, 55, 74, 0.46);
}

.page-current {
  color: #fff;
  background: var(--blue);
}

.article-shell {
  width: min(980px, calc(100vw - 40px));
}

.article-content {
  display: grid;
  gap: 28px;
}

.article-header {
  display: grid;
  gap: 14px;
  padding: 34px;
  border: 1px solid rgba(65, 118, 230, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 8%, rgba(65, 118, 230, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 28px 74px rgba(65, 118, 230, 0.10);
  backdrop-filter: blur(18px);
}

.article-back {
  width: fit-content;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
}

.article-header h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  font-weight: 520;
}

.article-header p {
  max-width: 760px;
  margin: 0;
  color: rgba(51, 55, 74, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.article-photo {
  min-height: 158px;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(112px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(65, 118, 230, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 18px 44px rgba(65, 118, 230, 0.09);
}

.article-photo span {
  display: block;
  background:
    radial-gradient(circle at calc(28% + var(--i) * 8%) 26%, rgba(65, 118, 230, 0.42), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(65, 118, 230, 0.14));
}

.article-photo figcaption {
  padding: 10px 12px;
  color: rgba(51, 55, 74, 0.72);
  font-size: 11px;
  line-height: 1.3;
}

.article-body {
  max-width: 760px;
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
  margin: 0 auto;
}

.article-body p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.72;
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .page {
    min-height: auto;
  }

  .services,
  .legal-grid,
  .footer,
  .cookie-banner {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card-secret {
    grid-column: auto;
  }

  .actions,
  .details {
    grid-column: 1 / -1;
  }

  .install-stack {
    justify-items: start;
  }

  .legal-card,
  .legal-card-wide {
    grid-column: auto;
  }

  .news-shell,
  .article-shell {
    width: min(100vw - 28px, 680px);
    padding-top: 14px;
  }

  .news-nav {
    align-items: flex-start;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .news-heading {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px;
    border-radius: 22px;
  }

  .news-heading-note {
    justify-content: flex-start;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card[data-featured="true"] {
    grid-column: auto;
    grid-row: auto;
  }

  .news-card a {
    min-height: 184px;
  }

  .news-card[data-featured="true"] a {
    min-height: 340px;
  }

  .article-header {
    padding: 24px;
    border-radius: 22px;
  }

  .article-body p {
    font-size: 16px;
    line-height: 1.65;
  }
}
