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

:root {
  --navy: #1a2f4e;
  --red: #c0392b;
  --gold: #e8a020;
  --light: #f7f8fa;
  --mid: #5a6a7a;
  --border: #dde3ea;
  --nav-h: 68px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans", sans-serif;
  background: var(--light);
  color: var(--navy);
}

/* ─────────────── NAV ─────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text .l1 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.logo-text .l2 {
  font-size: 0.52rem;
  letter-spacing: 3px;
  color: var(--mid);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-links a.active {
  color: var(--navy);
  background: var(--gold);
  padding: 4px 8px;
}
.nav-links a:hover {
  color: var(--navy);
}

.nav-cta {
  border: 1.5px solid var(--navy);
  padding: 9px 20px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--navy);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  gap: 18px;
  z-index: 199;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--mid);
}
.mobile-menu a.active {
  color: var(--navy);
}
.mobile-menu .nav-cta {
  align-self: flex-start;
  margin-top: 6px;
}

/* ─────────────── SECTIONS COMMON ─────────────── */
section {
  scroll-margin-top: var(--nav-h);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 60px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 20px;
}

.section-body {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--mid);
  max-width: 640px;
}

.placeholder-box {
  margin-top: 36px;
  padding: 28px 32px;
  border: 1.5px dashed var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--mid);
  font-size: 0.82rem;
  line-height: 1.7;
  font-style: italic;
}

/* ─────────────── #начало ─────────────── */
#начало {
  background: var(--light);
}
#начало .section-inner {
  text-align: center;
  padding-top: 90px;
  padding-bottom: 80px;
}
#начало .section-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}
#начало .section-title em {
  color: var(--red);
}
#начало .section-body {
  margin: 0 auto;
  font-style: italic;
}

/* signup */
.signup-block {
  max-width: 520px;
  margin: 44px auto 0;
  text-align: left;
}
.signup-row {
  display: flex;
  border: 1.5px solid var(--border);
  overflow: hidden;
  background: #fff;
}
.signup-row input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.88rem;
  color: var(--navy);
  background: transparent;
}
.signup-row input::placeholder {
  color: #b0bcc8;
}
.signup-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.signup-btn:hover {
  background: #0f1f33;
}

.checks {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.71rem;
  color: var(--mid);
  line-height: 1.55;
  cursor: pointer;
}
.check-label input {
  margin-top: 2px;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.tagline {
  margin-top: 36px;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.7;
  text-align: center;
}

/* features strip */
#начало .features {
  margin-top: 70px;
  text-align: left;
}
.features-header {
  border-top: 2px solid var(--navy);
  padding-top: 26px;
  margin-bottom: 8px;
}
.features-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.features-sub {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--mid);
  margin-bottom: 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 26px 22px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.feature-card:hover {
  box-shadow: 0 6px 24px rgba(26, 47, 78, 0.09);
  transform: translateY(-3px);
}
.feature-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--navy);
}
.feature-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 9px;
  color: var(--navy);
}
.feature-card p {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 300;
}

/* ─────────────── #функции ─────────────── */
#функции {
  background: #fff;
}

.funkcii-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.funkcii-item {
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: box-shadow 0.2s;
}
.funkcii-item:hover {
  box-shadow: 0 4px 18px rgba(26, 47, 78, 0.07);
}
.funkcii-item .fi-num {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 12px;
}
.funkcii-item h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.funkcii-item p {
  font-size: 0.83rem;
  color: var(--mid);
  line-height: 1.75;
  font-weight: 300;
}

/* ─────────────── #партньорство ─────────────── */
#партньорство {
  background: var(--light);
}

.partner-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  align-items: start;
}
.partner-cols .col-text .section-body {
  max-width: 100%;
}
.partner-list {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.partner-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--mid);
  line-height: 1.6;
}
.partner-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-top: 6px;
}
.partner-cta-block {
  background: var(--navy);
  padding: 36px 32px;
  color: #fff;
}
.partner-cta-block h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 14px;
  line-height: 1.3;
}
.partner-cta-block p {
  font-size: 0.85rem;
  line-height: 1.75;
  opacity: 0.75;
  margin-bottom: 26px;
}
.btn-outline-white {
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  padding: 11px 26px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ─────────────── #контакти ─────────────── */
#контакти {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-item h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
.contact-item p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
}
.contact-item a {
  color: var(--navy);
  text-decoration: none;
}
.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  padding: 13px 16px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.88rem;
  color: var(--navy);
  background: var(--light);
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--navy);
}
.contact-form textarea {
  min-height: 110px;
}
.contact-form button {
  align-self: flex-start;
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 13px 30px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: #0f1f33;
}

/* ─────────────── DIVIDER ─────────────── */
.section-divider {
  height: 1px;
  background: var(--border);
  max-width: 900px;
  margin: 0 auto;
}

/* ─────────────── FOOTER ─────────────── */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.45);
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 1px;
}
footer a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}
.footer-links {
  display: flex;
  gap: 20px;
}

/* ─────────────── ANIMATIONS ─────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  animation: fadeUp 0.7s ease both;
}
.delay-1 {
  animation-delay: 0.15s;
}
.delay-2 {
  animation-delay: 0.3s;
}
.delay-3 {
  animation-delay: 0.45s;
}

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 1100px) {
  nav {
    padding: 0 24px;
  }
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }

  .section-inner {
    padding: 60px 24px;
  }
  #начало .section-inner {
    padding-top: 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .funkcii-grid {
    grid-template-columns: 1fr;
  }
  .partner-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  footer {
    padding: 24px;
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .signup-row {
    flex-direction: column;
  }
  .signup-btn {
    width: 100%;
    padding: 14px;
    text-align: center;
  }
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 13px 15px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.9rem;
  color: #1a2f4e;
  background: transparent;
}

input[type="email"]::placeholder {
  color: #b0bcc8;
}

input[type="email"].error-field {
  border-color: #c0392b;
}

.signup-btn {
  background: #1a2f4e;
  color: #fff;
  border: none;
  padding: 13px 22px;
  font-family: "Noto Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.signup-btn:hover:not(:disabled) {
  background: #0f1f33;
}
.signup-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checks {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.72rem;
  color: #5a6a7a;
  line-height: 1.6;
  cursor: pointer;
}
.check-label input {
  margin-top: 2px;
  accent-color: #1a2f4e;
  flex-shrink: 0;
}

/* Feedback messages */
.message {
  display: none;
  margin-top: 20px;
  padding: 14px 16px;
  font-size: 0.82rem;
  line-height: 1.6;
  border-radius: 2px;
}
.message.success {
  display: block;
  background: #eaf7ee;
  color: #1e6b3a;
  border: 1px solid #b5dfc4;
}
.message.error {
  display: block;
  background: #fdf0ef;
  color: #9b2a20;
  border: 1px solid #f0bbb7;
}

/* Spinner inside button */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 480px) {
  .signup-row {
    flex-direction: column;
  }
  .signup-btn {
    padding: 13px;
    text-align: center;
  }
}
