/*
Theme Name: Kardan Petrozavodsk
Theme URI: https://remont-kardanov-v-petrozavodske.ru/
Author: Профессор
Description: Лёгкий лендинг для сервиса по ремонту карданных валов в Петрозаводске.
Version: 1.1.1
Text Domain: kardan-petrozavodsk
*/

:root {
  --bg: #0f1720;
  --bg-soft: #172433;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --text: #101828;
  --text-light: #5b667a;
  --accent: #f97316;
  --accent-dark: #dd5f0d;
  --line: #dbe3ee;
  --success: #0f9f6e;
  --shadow: 0 20px 50px rgba(15, 23, 32, 0.12);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--surface-soft);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
figure { margin: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(15, 23, 32, 0.7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
}
.brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.header-phone,
.mobile-phone {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.header-phone {
  font-size: 26px;
  line-height: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  border-radius: 999px;
  transition: .2s ease;
}

.header-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 48px;
}

.site-nav a {
  color: rgba(255,255,255,.88);
  font-weight: 600;
  font-size: 15px;
}

.site-nav a:hover {
  color: #fff;
}

.mobile-phone-row {
  display: none;
  padding: 0 0 14px;
}

.mobile-phone {
  display: inline-block;
  font-size: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: .2s ease;
  font-weight: 700;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(249,115,22,.28);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.16);
}
.btn-light {
  background: #fff;
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(249,115,22,.25), transparent 28%),
    linear-gradient(135deg, #0f1720 0%, #11243b 60%, #132c47 100%);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -120px -140px auto;
  width: 380px;
  height: 380px;
  background: rgba(249,115,22,.13);
  border-radius: 50%;
  filter: blur(10px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 36px;
  padding: 64px 0 72px;
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}
.hero-copy p {
  margin: 0 0 28px;
  color: rgba(255,255,255,.8);
  font-size: 18px;
  max-width: 700px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 14px;
}
.badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge-link--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(249,115,22,.28);
}
.badge-link--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 34px;
}
.mini-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}
.mini-card span {
  color: rgba(255,255,255,.75);
  font-size: 14px;
}

.hero-visual {
  display: grid;
  gap: 18px;
  align-self: start;
}

.quote-card,
.section-card,
.price-card,
.feature-card,
.form-card,
.review-card,
.contact-card,
.master-card,
.symptom-card,
.faq-item,
.process-shot {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.master-card {
  overflow: hidden;
  color: var(--text);
}
.master-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 12%;
}
.master-card__content {
  padding: 24px 24px 26px;
}
.master-card__content h2 {
  margin: 10px 0 12px;
  font-size: 28px;
}
.master-card__content p {
  margin: 0;
  color: var(--text-light);
}
.master-card__tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(249,115,22,.12);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.quote-card {
  color: var(--text);
  padding: 28px;
  align-self: start;
}
.quote-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.quote-card li {
  padding-left: 28px;
  position: relative;
  color: var(--text-light);
}
.quote-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 800;
}
.quote-phone {
  display: inline-block;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}
.quote-note {
  font-size: 14px;
  color: var(--text-light);
}

.section {
  padding: 78px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}
.section-heading p {
  margin: 0;
  max-width: 660px;
  color: var(--text-light);
}

.section-cta-band {
  padding-top: 28px;
  padding-bottom: 20px;
}
.cta-band {
  background: linear-gradient(135deg, #111d2c 0%, #1a2b3f 100%);
  color: #fff;
  padding: 24px 28px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
}
.cta-band strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}
.cta-band span {
  color: rgba(255,255,255,.78);
}

.prices-grid,
.features-grid,
.work-grid,
.reviews-grid,
.contact-grid,
.symptoms-grid,
.faq-list,
.process-gallery,
.heavy-grid {
  display: grid;
  gap: 20px;
}
.prices-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.price-card {
  padding: 24px;
}
.price-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
}
.price-card .price {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}
.price-card p {
  margin: 0;
  color: var(--text-light);
}
.price-lines {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.price-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text-light);
  font-size: 14px;
}
.price-line strong {
  color: var(--text);
  font-size: 15px;
  text-align: right;
}

.symptoms-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.symptom-card {
  padding: 24px;
}
.symptom-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}
.symptom-card p {
  margin: 0;
  color: var(--text-light);
}

.section-dark {
  background: linear-gradient(180deg, #102033 0%, #0e1721 100%);
  color: #fff;
}
.section-dark .section-heading p { color: rgba(255,255,255,.72); }
.features-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.feature-card {
  padding: 24px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}
.feature-card p {
  margin: 0;
  color: rgba(255,255,255,.72);
}

.work-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.section-card {
  padding: 24px;
}
.section-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}
.section-card p,
.section-card li {
  color: var(--text-light);
}
.section-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.service-card,
.heavy-card {
  overflow: hidden;
  padding: 0;
}
.service-card img,
.heavy-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.service-card__body,
.heavy-card__body {
  padding: 24px;
}

.heavy-grid {
  grid-template-columns: 1.2fr .9fr .9fr;
}
.heavy-card--wide {
  grid-row: span 2;
}
.heavy-card--wide img {
  height: 100%;
  min-height: 420px;
}
.heavy-card__body h3 {
  margin: 0 0 12px;
  font-size: 24px;
}
.heavy-card__body p {
  margin: 0;
  color: var(--text-light);
}

.form-wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
}
.form-card,
.contact-card,
.review-card {
  padding: 28px;
}
.page-card {
  max-width: 920px;
  margin: 0 auto;
}
.page-card h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: clamp(30px, 4vw, 44px);
}
.page-content {
  color: var(--text-light);
}
.page-content h2,
.page-content h3 {
  color: var(--text);
  margin-top: 28px;
  margin-bottom: 12px;
}
.page-content p,
.page-content li {
  color: var(--text-light);
}
.page-content a {
  color: var(--accent-dark);
}
.process-steps {
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}
.process-step {
  box-shadow: none;
  border: 1px solid var(--line);
  padding: 18px;
}
.process-gallery {
  grid-template-columns: repeat(3, minmax(0,1fr));
  margin-top: 22px;
}
.process-shot {
  overflow: hidden;
}
.process-shot img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.process-shot figcaption {
  padding: 14px 16px 16px;
  font-weight: 600;
  color: var(--text);
}
.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
}
.lead-form textarea {
  min-height: 110px;
  resize: vertical;
}
.form-help {
  font-size: 13px;
  color: var(--text-light);
}
.notice-box {
  padding: 16px 18px;
  border-radius: 16px;
  margin-top: 18px;
  font-weight: 600;
}
.notice-success {
  background: rgba(15,159,110,.1);
  color: #0a7f58;
}
.notice-error {
  background: rgba(220,38,38,.08);
  color: #b42318;
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0,1fr));
}
.faq-item {
  padding: 24px;
}
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 21px;
}
.faq-item p {
  margin: 0;
  color: var(--text-light);
}

.final-cta {
  background: linear-gradient(135deg, #f97316 0%, #ff9b52 100%);
  color: #fff;
  padding: 36px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}
.final-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}
.final-cta p {
  margin: 0;
  color: rgba(255,255,255,.9);
  max-width: 720px;
}
.final-cta__actions {
  display: grid;
  gap: 12px;
  min-width: 260px;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}
.contact-card h3 {
  margin: 0 0 14px;
  font-size: 24px;
}
.contact-list {
  display: grid;
  gap: 14px;
}
.contact-item small {
  display: block;
  color: var(--text-light);
  margin-bottom: 4px;
}
.contact-item strong,
.contact-item a {
  font-size: 18px;
  font-weight: 700;
}
.contact-card--media {
  overflow: hidden;
  padding: 0;
}
.contact-card--media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.contact-card__body {
  padding: 24px;
}

.site-footer {
  padding: 22px 0 42px;
  color: var(--text-light);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .7fr;
  gap: 24px;
}
.footer-links-group {
  display: grid;
  gap: 10px;
}
.footer-links-group strong {
  color: var(--text);
  font-size: 16px;
}
.footer-links-group a {
  color: var(--text-light);
}
.footer-links-group a:hover {
  color: var(--accent-dark);
}

@media (max-width: 1120px) {
  .hero-inner,
  .form-wrap,
  .contact-grid,
  .features-grid,
  .prices-grid,
  .work-grid,
  .reviews-grid,
  .symptoms-grid,
  .faq-list,
  .process-gallery,
  .heavy-grid {
    grid-template-columns: 1fr 1fr;
  }
  .heavy-card--wide {
    grid-row: auto;
    grid-column: span 2;
  }
  .heavy-card--wide img {
    min-height: 320px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cta-band,
  .final-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner,
  .form-wrap,
  .contact-grid,
  .features-grid,
  .prices-grid,
  .work-grid,
  .reviews-grid,
  .symptoms-grid,
  .faq-list,
  .process-gallery,
  .heavy-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    min-height: 58px;
    gap: 12px;
  }
  .final-cta__actions,
  .btn {
    width: 100%;
  }
  .brand {
    flex: 1;
    min-width: 0;
  }
  .brand-title {
    font-size: 16px;
    line-height: 1.2;
  }
  .header-phone {
    display: none;
  }
  .menu-toggle {
    display: block;
    flex: 0 0 auto;
  }
  .header-bottom {
    display: none;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .site-header.is-open .header-bottom {
    display: block;
  }
  .site-nav {
    min-height: 0;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .mobile-phone-row {
    display: block;
  }
  .mobile-phone {
    font-size: 20px;
  }
  .hero-copy p { font-size: 16px; }
  .price-line {
    flex-direction: column;
    gap: 4px;
  }
  .price-line strong {
    text-align: left;
  }
  .heavy-card--wide {
    grid-column: auto;
  }
  .master-card img,
  .service-card img,
  .heavy-card img,
  .process-shot img,
  .contact-card--media img {
    height: auto;
    min-height: 0;
  }
}
