/* ЗелДакар — белый, синий, красный. Mobile-first */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-blue: #2563eb;
  --color-blue-dark: #1d4ed8;
  --color-blue-light: #eff6ff;
  --color-red: #dc2626;
  --color-red-dark: #b91c1c;
  --color-red-light: #fef2f2;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-border: #e5e7eb;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (max-width: 374px) {
  .container { padding: 0 12px; }
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

/* Кнопки: красная CTA, синяя основная */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
    padding: 14px 16px;
  }
}

.btn--cta {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

.btn--cta:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: #fff;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}

.btn--primary:hover {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
  color: #fff;
  text-decoration: none;
}

/* 1. Header — белый фон, логотип и акценты синий/красный */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  min-height: var(--header-height);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.header__left {
  flex: 0 0 auto;
}

.header__logo {
  display: block;
  text-decoration: none;
}

.header__logo:hover {
  opacity: 0.92;
}

.header__logo-img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .header__logo-img {
    width: 64px;
    height: 64px;
  }
}

.header__nav {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
  gap: 28px;
}

.header__nav.is-open {
  display: flex;
  flex-basis: 100%;
  flex-direction: column;
  order: 10;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.header__link {
  color: var(--color-text);
  font-weight: 500;
}

.header__link:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.header__burger {
  display: block;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M3 6h18M3 12h18M3 18h18'/%3E%3C/svg%3E") center no-repeat;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
}

@media (max-width: 480px) {
  .header__right {
    max-width: 50%;
  }
  .header__phone {
    font-size: 0.9rem;
    word-break: break-all;
  }
  .header__hours {
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: right;
  }
}

.header__phone {
  color: var(--color-blue);
  font-weight: 600;
  font-size: 1rem;
}

.header__phone:hover {
  color: var(--color-blue-dark);
  text-decoration: underline;
}

.header__hours {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.header__tg {
  color: var(--color-blue);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
}

.header__tg:hover {
  color: var(--color-blue-dark);
}

.header__cta {
  display: none;
  font-size: 14px;
  padding: 10px 18px;
}

@media (min-width: 768px) {
  .header__burger {
    display: none;
  }
  .header__nav,
  .header__nav.is-open {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    order: unset;
    padding: 0;
    border: none;
  }
  .header__right {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .header__hours {
    color: var(--color-text-muted);
  }
  .header__hours::before {
    content: "· ";
  }
  .header__cta {
    display: inline-flex;
  }
}

/* 2. Hero — белый фон, красная CTA по ТЗ */
.hero {
  padding: 32px 0 40px;
  padding-top: max(32px, env(safe-area-inset-top));
  background: linear-gradient(180deg, var(--color-blue-light) 0%, var(--color-bg) 100%);
}

@media (max-width: 480px) {
  .hero {
    padding: 24px 0 36px;
  }
  .hero__title {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  .hero__subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
}

.hero__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero__title {
  margin: 0 0 16px;
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--color-text);
  font-weight: 700;
}

.hero__subtitle {
  margin: 0 0 24px;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.hero__subtitle strong {
  color: var(--color-text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.hero__cta {
  display: inline-flex;
}

.btn--tg {
  background: #0088cc;
  color: #fff;
  border-color: #0088cc;
}

.btn--tg:hover {
  background: #006699;
  border-color: #006699;
  color: #fff;
  text-decoration: none;
}

.hero__tg-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero__tg-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero {
    padding: 64px 0 80px;
  }
  .hero__title {
    font-size: 2.25rem;
  }
  .hero__subtitle {
    font-size: 1.1rem;
  }
}

/* 3. Преимущества и услуги */
.advantages {
  padding: 40px 0 48px;
  background: var(--color-bg-alt);
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
}

.advantages__intro {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: center;
}

.advantages__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.advantages__block {
  background: var(--color-bg);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}

@media (max-width: 480px) {
  .advantages {
    padding: 28px 0 36px;
  }
  .advantages__block {
    padding: 16px;
  }
  .section-title {
    font-size: 1.35rem;
  }
}

.advantages__block:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-blue);
}

.advantages__subtitle {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-blue);
}

.advantages__block p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.advantages__outro {
  max-width: 640px;
  margin: 28px auto 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: center;
}

.advantages__outro strong {
  color: var(--color-text);
}

@media (min-width: 768px) {
  .advantages__content {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }
  .advantages__intro {
    margin-bottom: 32px;
    font-size: 1.05rem;
  }
}

@media (min-width: 1024px) {
  .advantages__content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4. Контакты и карта (данные с Яндекс.Карт) */
.contacts {
  padding: 48px 0 0;
  background: var(--color-bg);
}

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

.contacts__info .section-title {
  text-align: left;
}

.contacts__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
}

.contacts__rating-stars {
  color: #f59e0b;
  font-weight: 700;
  font-size: 1.1rem;
}

.contacts__rating-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contacts__address {
  font-style: normal;
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.contacts__landmarks {
  margin-bottom: 16px;
}

.contacts__landmarks-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.contacts__landmarks p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.contacts__phone {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
}

.contacts__phone a {
  color: var(--color-blue);
}

.contacts__site {
  margin: 0 0 16px;
}

.contacts__site a {
  color: var(--color-blue);
}

.contacts__map-link {
  margin-bottom: 12px;
}

.contacts__map-wrap {
  min-height: 260px;
  margin: 0 -16px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (max-width: 480px) {
  .contacts__map-wrap {
    margin: 0 -12px;
  }
  .contacts__map {
    height: 260px;
    min-height: 260px;
  }
}

.contacts__map {
  width: 100%;
  height: 280px;
  min-height: 280px;
  background: var(--color-bg-alt);
  border: 0;
  display: block;
}

@media (min-width: 768px) {
  .contacts__inner {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
  .contacts__map-wrap {
    margin: 0;
    min-height: 340px;
  }
  .contacts__map {
    height: 340px;
  }
}

/* 5. Footer — синий */
.footer {
  background: var(--color-blue);
  color: rgba(255,255,255,0.9);
  padding: 24px 0;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  font-size: 0.9rem;
}

.footer__contacts {
  margin: 0 0 8px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px 6px;
}

.footer__contacts > * + *::before {
  content: " · ";
  margin-right: 6px;
  color: rgba(255,255,255,0.8);
}

@media (max-width: 600px) {
  .footer__contacts {
    flex-direction: column;
    gap: 6px;
  }
  .footer__contacts > * + *::before {
    content: none;
    margin: 0;
  }
}

.footer__contacts a {
  color: #fff;
}

.footer__sep {
  color: rgba(255,255,255,0.9);
}

.footer__tg:hover {
  text-decoration: underline;
}

.footer__contacts a:hover {
  text-decoration: underline;
}

.footer__copy {
  margin: 0;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}
