:root {
  --bg: #f4f7ff;
  --text: #0a1020;
  --muted: #50607a;

  --accent: #2f7bff;
  --accent2: #1de3ff;

  --glass: rgba(255, 255, 255, .70);
  --stroke: rgba(255, 255, 255, .60);
  --stroke-soft: rgba(10, 16, 32, .10);

  --shadow: 0 20px 60px rgba(10, 16, 32, .12);
  --shadow-soft: 0 10px 30px rgba(10, 16, 32, .10);
  --shadow-inset: inset 0 1px 0 rgb(255, 255, 255), inset 0 0 3px rgba(0, 0, 0, .10);

  --icon-bg:
    linear-gradient(180deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .20)),
    radial-gradient(24px 24px at 30% 30%, rgba(29, 227, 255, .40), transparent 90%),
    radial-gradient(30px 30px at 70% 70%, rgba(47, 123, 255, .30), transparent 90%);

  --r-sm: 14px;
  --r-md: 18px;

  --container: 1200px;
}

/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(47, 123, 255, .25), transparent 55%),
    radial-gradient(900px 600px at 80% 15%, rgba(29, 227, 255, .20), transparent 55%),
    radial-gradient(1000px 700px at 60% 95%, rgba(173, 120, 255, .18), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 55%, #ffffff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 14px;
}

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

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section */
section {
  padding: 35px 0;
}

.section-title {
  text-align: center;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 3.2vw, 38px);
  margin: 0 0 14px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 22px rgba(47, 123, 255, .24);
}


/* Glass surfaces */
.feature-card,
.service-card,
.glass-panel,
.work-card,
.contact-form,
.contact-info,
.navbar__content {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-top-color: rgba(255, 255, 255, .78);
  border-left-color: rgba(255, 255, 255, .70);
  border-right-color: rgba(10, 16, 32, .08);
  border-bottom-color: rgba(10, 16, 32, .08);
  box-shadow: var(--shadow-inset), var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* Header / Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(10, 16, 32, .10);
}

.navbar {
  padding: 10px 0;
}

.navbar__content {
  border-radius: var(--r-md);
  padding: 10px;
  display: flex;
  align-items: center;
  font-family: "Sansation", sans-serif;
}

.logo__image {
  filter: drop-shadow(0 0 30px rgba(10, 160, 240, 0.7));
}

.navbar__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  padding: 10px 12px;
  color: rgba(10, 16, 32, .78);
  font-weight: 700;
  border-radius: 999px;
  transition:
    transform .18s ease,
    background-position .35s ease,
    color .18s ease,
    box-shadow .18s ease;

  background-image: linear-gradient(45deg, #51666b 13%, #0d93bc 66%, #434445);
  background-size: 150% 150%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ховер — лёгкое движение блика + стеклянная подложка */
.nav-link:hover {
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 8px 20px rgba(10, 16, 32, .12);
  background-color: rgba(255, 255, 255, .18);
  /* фон под текстом */
}

.navbar__cta {
  margin-left: auto;
}

.navbar__toggle {
  margin-left: auto;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--shadow-inset);
  cursor: pointer;
}

.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background-image: linear-gradient(45deg, #51666b 13%, #0d93bc 66%, #434445);
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

.navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Buttons: metallic + liquid glass */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .60);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
  user-select: none;
  box-shadow: var(--shadow-inset);
}

.btn i {
  opacity: .9;
}

.btn--sm {
  min-height: 40px;
  padding: 10px 14px;
}

.btn--lg {
  min-height: 52px;
  padding: 14px 18px;
}

.btn--primary {
  color: #071024;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .70), rgba(255, 255, 255, .35)),
    radial-gradient(120px 80px at 20% 20%, rgba(29, 227, 255, .40), transparent 55%),
    radial-gradient(140px 90px at 80% 30%, rgba(47, 123, 255, .35), transparent 60%),
    linear-gradient(90deg, rgba(47, 123, 255, .22), rgba(29, 227, 255, .22));
  border-color: rgba(255, 255, 255, .75);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-inset), 0 24px 55px rgba(47, 123, 255, .18);
  filter: saturate(1.08);
}

.btn--secondary {
  background: rgba(255, 255, 255, .50);
  color: rgba(10, 16, 32, .86);
  border-color: rgba(10, 16, 32, .10);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-inset), var(--shadow);
}

.btn--outline {
  background: transparent;
  border: 1px solid rgba(10, 16, 32, .16);
  color: rgba(10, 16, 32, .86);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, .45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-inset), var(--shadow-soft);
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

/* Hero */
.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 22px;
  align-items: start;
}

.hero__content {
  border-radius: var(--r-md);
  padding: 26px 22px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .70);
  box-shadow: var(--shadow-inset), var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero__title {
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.4;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, rgba(10, 16, 32, .95), rgba(10, 16, 32, .75));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 20px;
  font-size: 16px;
}

.hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.hero__panel .glass-panel {
  border-radius: var(--r-md);
  padding: 18px 18px;
}

.panel__title {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgba(10, 16, 32, .70);
}

.panel__list i {
  color: rgba(47, 123, 255, .95);
  margin-right: 10px;
}

.panel__cta {
  margin-top: 14px;
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.feature-card {
  border-radius: var(--r-sm);
  padding: 16px 14px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-inset), var(--shadow);
  filter: saturate(1.05);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--shadow-inset);
  color: rgba(10, 16, 32, .80);
  margin-bottom: 10px;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  border-radius: var(--r-sm);
  padding: 18px 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-inset), var(--shadow);
}

.service-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: var(--icon-bg);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--shadow-inset);
  color: rgba(10, 16, 32, .82);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.service-card p {
  margin: 0;
}

/* Portfolio merged */
.portfolio {
  padding-top: 64px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-card {
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  transition: transform .18s ease, box-shadow .18s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-inset), var(--shadow);
}

.work-media {
  position: relative;
  min-height: 230px;
  background:
    radial-gradient(220px 160px at 20% 30%, rgba(47, 123, 255, .26), transparent 65%),
    radial-gradient(220px 160px at 80% 70%, rgba(29, 227, 255, .24), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .35));
  border-right: 1px solid rgba(10, 16, 32, .08);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

.work-media.is-fallback img {
  display: none;
}

.work-media.is-fallback::after {
  content: "Фото скоро будет";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: rgba(10, 16, 32, .55);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}

.work-body {
  padding: 18px 18px;
}

.work-title {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 16, 32, .12);
  background: rgba(255, 255, 255, .55);
  color: rgba(10, 16, 32, .72);
  box-shadow: var(--shadow-inset);
  font-weight: 800;
  font-size: 12px;
}

.badge i {
  color: rgba(47, 123, 255, .92);
}

.work-desc {
  margin: 0;
}

.gallery-load-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.contact-form-wrapper h3,
.contact-info-wrapper h3 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.contact-form {
  border-radius: var(--r-md);
  padding: 18px 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.form-checkbox label {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  color: rgba(10, 16, 32, .78);
  line-height: 1.45;
}

.form-checkbox a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

label {
  display: block;
  font-weight: 900;
  font-size: 13px;
  color: rgba(10, 16, 32, .78);
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(10, 16, 32, .14);
  background: rgba(255, 255, 255, .60);
  color: rgba(10, 16, 32, .86);
  outline: none;
  transition: box-shadow .16s ease, transform .16s ease, border-color .16s ease;
  box-shadow: var(--shadow-inset);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus,
textarea:focus {
  border-color: rgba(47, 123, 255, .55);
  box-shadow: var(--shadow-inset), 0 0 0 4px rgba(47, 123, 255, .15);
}

.form-status {
  margin: 12px 0 0;
  font-weight: 900;
  color: rgba(10, 16, 32, .72);
}

.form-status.success {
  color: #0b6a4f;
}

.form-status.error {
  color: #b3261e;
}

.contact-info {
  border-radius: var(--r-md);
  padding: 18px 16px;
}

.contact-info__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.contact-info__item i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .70);
  box-shadow: var(--shadow-inset);
  color: rgba(47, 123, 255, .92);
}

.contact-info__item h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.contact-info__item p,
.contact-info__item a {
  margin: 0;
  color: rgba(10, 16, 32, .64);
}

.contact-info__item a:hover {
  color: rgba(47, 123, 255, .95);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .70), rgba(255, 255, 255, .35)),
    linear-gradient(90deg, rgba(47, 123, 255, .18), rgba(29, 227, 255, .18));
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--shadow-inset);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-inset), var(--shadow-soft);
  filter: saturate(1.06);
}

/* Footer */
.footer {
  padding: 22px 0;
  border-top: 1px solid rgba(10, 16, 32, .10);
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.footer__content{
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 14px;
}

.footer__copyright{
  margin: 0;
  color: rgba(10, 16, 32, .62);
  font-weight: 700;
  line-height: 1.6;
}

.footer__rights{
  margin-left: 6px;
  white-space: nowrap;
}

.footer__link{
  color: rgba(10, 16, 32, .70);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  opacity: .9;
  transition: opacity .16s ease, transform .16s ease;
}

.footer__link:hover{
  opacity: 1;
  transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 560px){
  .footer{
    padding: 18px 0;
  }

  .footer__content{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer__rights{
    display: block;
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .navbar__toggle {
    display: block;
  }

  .navbar__cta {
    display: none;
  }

  .navbar__content {
    flex-wrap: wrap;
    align-items: center;
    padding: 0 10px;
  }

  /* Меню становится "внутренним" блоком на всю ширину */
  .navbar__menu {
    flex: 0 0 100%;
    display: block;
    width: 100%;
    padding: 0;
    list-style: none;

    /* Состояние "закрыто" */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;

    /* Анимация разворачивания */
    transition: max-height 260ms ease, opacity 160ms ease, transform 260ms ease, padding 260ms ease;
    border-top: 1px solid rgba(10, 16, 32, .10);
  }

  .navbar__menu.active {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    padding: 15px;
  }

  .navbar__menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 14px;
  }

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

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

  .hero__panel {
    order: 2;
  }

  .hero__content {
    order: 1;
  }

  .work-card {
    grid-template-columns: 320px 1fr;
  }

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

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

  .work-card {
    grid-template-columns: 1fr;
  }

  .work-media {
    min-height: 210px;
    border-right: none;
    border-bottom: 1px solid rgba(10, 16, 32, .08);
  }
}

@media (max-width: 560px) {
  section {
    padding: 62px 0;
  }

  .logo__text {
    display: none;
  }

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

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

  .hero__buttons {
    flex-direction: column;
  }

  .btn--lg {
    width: 100%;
  }
}

/* =========================================================
   Стили страницы Политика приватности
   ========================================================= */
.privacy-page {
  padding: 35px 0;
}

.privacy__section {
  padding: 0;
}

.privacy-card {
  border-radius: var(--r-md);
  padding: 22px 18px;
}

.privacy-meta {
  margin: 0 0 14px;
  color: rgba(10, 16, 32, .62);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.privacy-meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy p {
  margin: 0 0 12px;
}

.privacy h2 {
  margin: 18px 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: rgba(10, 16, 32, .92);
}

.privacy h3 {
  margin: 14px 0 8px;
  font-size: 15px;
  color: rgba(10, 16, 32, .86);
}

.privacy ul,
.privacy ol {
  margin: 0 0 12px;
  padding-left: 18px;
}

.privacy li {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.7;
}

.privacy-note {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(10, 16, 32, .10);
  box-shadow: var(--shadow-inset);
  margin: 14px 0;
  color: rgba(10, 16, 32, .72);
  font-weight: 700;
}

.privacy-toc {
  margin: 14px 0 16px;
  padding: 14px 14px 10px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(10, 16, 32, .10);
  box-shadow: var(--shadow-inset);
}

.privacy-toc__title {
  margin: 0 0 10px;
  font-weight: 900;
  color: rgba(10, 16, 32, .86);
  letter-spacing: -0.01em;
}

.privacy-toc ol {
  margin: 0;
  padding-left: 18px;
}

.privacy-toc a {
  text-decoration: none;
}

.privacy-toc a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(10, 16, 32, .10);
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--shadow-inset);
}

.privacy-table th,
.privacy-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(10, 16, 32, .08);
  color: rgba(10, 16, 32, .78);
}

.privacy-table th {
  width: 280px;
  color: rgba(10, 16, 32, .86);
  font-weight: 900;
}

.privacy-table tr:last-child th,
.privacy-table tr:last-child td {
  border-bottom: 0;
}

.privacy-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

@media (max-width: 560px) {
  .privacy-table {
    font-size: 14px;
  }
}