/* 
  SpaCat — самостоятельная адаптивная HTML/CSS-верстка в визуальной логике pet-grooming шаблона.
  Важно: код и SVG-изображения написаны заново, без копирования платных файлов демо.
*/

:root {
  --dark: #262626;
  --text: #2f3540;
  --muted: #90939d;
  --line: #eeeeee;
  --blue: #aee9fb;
  --blue-strong: #82d9f3;
  --white: #ffffff;
  --soft: #f7f7f7;
  --section: #f4f4f4;
  --container: 1190px;
  --font-title: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-main: "Trebuchet MS", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.65;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.logo__icon {
  position: relative;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  background: var(--blue);
}

.logo__icon::before,
.logo__icon::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 16px;
  height: 16px;
  border-radius: 50% 50% 46% 46%;
  background: var(--dark);
}

.logo__icon::before {
  left: 18px;
  transform: rotate(-36deg);
}

.logo__icon::after {
  right: 18px;
  transform: rotate(36deg);
}

.logo__muzzle {
  position: absolute;
  left: 16px;
  bottom: 9px;
  width: 26px;
  height: 19px;
  border: 3px solid var(--dark);
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

.logo__text {
  font-size: 31px;
  letter-spacing: -0.04em;
  color: #444956;
}

.logo__text strong {
  color: #242835;
}

/* Header */

.header-info {
  background: #fff;
  border-top: 3px solid #2a2e39;
}

.header-info__grid {
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 36px;
}

.info-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 15px;
  color: #8e929d;
}

.info-line__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #edf7fb;
  border-radius: 50%;
  color: var(--blue-strong);
  font-size: 25px;
}

.info-line a,
.info-line span {
  display: block;
}

.btn-outline,
.btn-blue,
.btn-white {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0 34px;
  border: 1px solid var(--blue-strong);
  background: transparent;
  color: #191d27;
  font-family: var(--font-title);
  font-size: 17px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-outline:hover,
.btn-blue:hover,
.btn-white:hover {
  transform: translateY(-2px);
}

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

.btn-white {
  border-color: #fff;
  background: #fff;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--dark);
}

.main-nav__grid {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #3c3c3c;
  border-radius: 4px;
  cursor: pointer;
}

.nav-burger span {
  width: 21px;
  height: 2px;
  background: #fff;
}

.menu {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 0 27px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}

.menu a:hover,
.menu a.is-active {
  color: var(--blue);
}

.search-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 30px;
}

/* Decorative bubbles */

.bubble-box {
  position: relative;
  overflow: hidden;
}

.bubbles-left::before,
.bubbles-right::after,
.bubble-box::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  opacity: .95;
}

.bubbles-left::before {
  left: 24px;
  top: 88px;
  width: 340px;
  height: 310px;
  background-image:
    radial-gradient(circle at 64px 80px, var(--blue) 0 33px, transparent 34px),
    radial-gradient(circle at 158px 35px, var(--blue) 0 11px, transparent 12px),
    radial-gradient(circle at 144px 108px, var(--blue) 0 12px, transparent 13px),
    radial-gradient(circle at 182px 135px, var(--blue) 0 14px, transparent 15px),
    radial-gradient(circle at 28px 147px, var(--blue) 0 10px, transparent 11px),
    radial-gradient(circle at 110px 162px, var(--blue) 0 8px, transparent 9px),
    radial-gradient(circle at 176px 198px, var(--blue) 0 8px, transparent 9px);
  opacity: .72;
}

.bubbles-right::after {
  right: 55px;
  bottom: 20px;
  width: 300px;
  height: 320px;
  background-image:
    radial-gradient(circle at 90px 120px, var(--blue) 0 38px, transparent 39px),
    radial-gradient(circle at 146px 165px, var(--blue) 0 18px, transparent 19px),
    radial-gradient(circle at 212px 70px, var(--blue) 0 10px, transparent 11px),
    radial-gradient(circle at 245px 120px, var(--blue) 0 11px, transparent 12px),
    radial-gradient(circle at 184px 235px, var(--blue) 0 13px, transparent 14px),
    radial-gradient(circle at 52px 242px, var(--blue) 0 10px, transparent 11px);
  opacity: .78;
}

/* Hero */

.hero {
  background: #f1f1f1;
}

.hero__grid {
  position: relative;
  z-index: 1;
  min-height: 705px;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
}

.hero__content {
  padding-left: 132px;
}

.hero__title {
  margin: 0 0 40px;
  font-size: clamp(50px, 5.3vw, 78px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -0.05em;
}

.hero__title strong {
  display: block;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero__image {
  height: 100%;
  min-height: 705px;
  display: flex;
  align-items: flex-end;
  background: #e9e9e9;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About */

.section {
  position: relative;
  padding: 110px 0;
}

.about__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  gap: 42px;
}

.about__image img {
  width: 92%;
}

.section-title {
  margin: 0 0 26px;
  font-size: clamp(35px, 3.2vw, 48px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.text-block {
  max-width: 520px;
  color: var(--muted);
}

.text-block p {
  margin: 0 0 20px;
}

/* Features */

.features {
  background: var(--section);
}

.features__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 57% 43%;
  align-items: center;
  gap: 30px;
  min-height: 620px;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px 64px;
}

.feature-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
}

.feature-item__icon {
  color: var(--blue-strong);
  font-size: 40px;
  line-height: 1;
}

.feature-item h3 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 900;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
}

.features__image {
  align-self: end;
}

.features__image img {
  width: 100%;
}

/* Services */

.services {
  background: #fff;
  text-align: center;
}

.services .section-title,
.blog .section-title {
  text-align: center;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 70px;
  color: var(--muted);
  text-align: center;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 70px;
  text-align: left;
}

.service-card {
  transition: transform .2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card__image {
  overflow: hidden;
  border-radius: 5px;
  background: #e9e9e9;
}

.service-card__image img {
  width: 100%;
  aspect-ratio: 1.36 / 1;
  object-fit: cover;
}

.service-card h3 {
  margin: 21px 0 0;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
}

/* Blog */

.blog {
  padding-top: 0;
  background: #fff;
}

.blog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.blog-card__image {
  overflow: hidden;
  background: #e9e9e9;
}

.blog-card__image img {
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
}

.blog-card h3 {
  margin: 28px 0 14px;
  font-size: 31px;
  line-height: 1.18;
  font-weight: 900;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 20px;
  color: var(--muted);
}

.blog-meta span + span {
  padding-left: 22px;
  border-left: 1px solid #e4e4e4;
}

.blog-meta a {
  color: #6fcbea;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
}

/* CTA/footer */

.cta {
  padding: 60px 0;
  background: var(--blue);
}

.cta__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
}

.cta h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.footer {
  padding: 55px 0;
  background: var(--dark);
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 35px;
}

.footer p,
.footer li {
  color: #bfc1c8;
}

.footer h3 {
  margin: 0 0 18px;
  font-size: 23px;
}

.footer ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

/* Inner pages */

.page-hero {
  padding: 92px 0;
  background: #f1f1f1;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 4.4vw, 62px);
  line-height: 1.1;
}

.page-content {
  padding: 90px 0;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.page-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* Adaptive */

@media (max-width: 1180px) {
  .header-info__grid {
    grid-template-columns: 1fr 1fr;
    padding: 18px 0;
  }

  .header-info__grid .btn-outline {
    justify-self: start;
  }

  .hero__content {
    padding-left: 40px;
  }

  .menu a {
    padding: 0 18px;
  }

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

@media (max-width: 900px) {
  .main-nav__grid {
    grid-template-columns: auto auto;
    min-height: 64px;
  }

  .nav-burger {
    display: flex;
    justify-self: start;
  }

  .menu {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    background: #2d2d2d;
    border: 1px solid #3f3f3f;
  }

  .menu a {
    min-height: 50px;
    justify-content: flex-start;
    padding: 0 20px;
  }

  .nav-toggle:checked ~ .menu {
    display: flex;
  }

  .search-icon {
    justify-self: end;
  }

  .hero__grid,
  .about__grid,
  .features__grid,
  .cta__grid,
  .footer__grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    min-height: auto;
  }

  .hero__content {
    padding: 80px 0;
  }

  .hero__image {
    min-height: 420px;
  }

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

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

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 22px, var(--container));
  }

  .header-info__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .logo__text {
    font-size: 28px;
  }

  .info-line {
    grid-template-columns: 50px 1fr;
  }

  .info-line__icon {
    width: 46px;
    height: 46px;
  }

  .hero__title {
    font-size: 46px;
  }

  .section {
    padding: 70px 0;
  }

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

  .service-card h3,
  .blog-card h3 {
    font-size: 25px;
  }

  .blog-meta {
    gap: 8px;
  }

  .blog-meta span + span {
    padding-left: 0;
    border-left: 0;
  }

  .btn-outline,
  .btn-blue,
  .btn-white {
    width: 100%;
    padding: 0 18px;
    letter-spacing: .14em;
  }

  .bubbles-left::before,
  .bubbles-right::after {
    opacity: .28;
  }
}


/* Чистая верхняя шапка: убраны телефон, адрес и кнопка заявки */
.header-info--clean {
  border-top: 0;
}

.header-info__grid--clean {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .header-info__grid--clean {
    min-height: 76px;
  }
}


/* CMS-адаптация главной: сохраняем визуальный шаблон, добавляем стили под {{content}} и теги */
.site-main { min-width: 0; }

.hero__title { max-width: 780px; }

.template-content {
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}

.template-content > *:first-child { margin-top: 0; }

.template-content h2,
.template-content h3,
.template-content h4 {
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.template-content h2 {
  margin: 42px 0 18px;
  font-size: 38px;
}

.template-content h3 {
  margin: 30px 0 14px;
  font-size: 29px;
}

.template-content p,
.template-content li { color: var(--muted); }

.template-content p { margin: 0 0 20px; }

.template-content ul,
.template-content ol {
  padding-left: 24px;
  margin: 0 0 24px;
}

.template-content img {
  margin: 30px auto;
  border-radius: 5px;
}

.template-content a {
  color: #52c8ec;
  font-weight: 800;
}

.tags {
  background: #fff;
  text-align: center;
}

.tags__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.tags__list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--blue-strong);
  border-radius: 999px;
  padding: 0 20px;
  color: #252a35;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.tags__list a:hover {
  transform: translateY(-2px);
  background: var(--blue);
}

.site-footer__bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #bfc1c8;
}

@media (max-width: 640px) {
  .template-content h2 { font-size: 30px; }
  .template-content h3 { font-size: 24px; }
}
