/**
 * МастерДом — Landing page styles
 * Construction company: home & apartment renovation
 */

:root {
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-soft: #fef3c7;
  --dark: #16191f;
  --dark-2: #1f242d;
  --dark-3: #2a313c;
  --light: #f7f6f3;
  --white: #ffffff;
  --text: #232730;
  --text-muted: #6b7280;
  --text-on-dark: #e8e6e1;
  --text-on-dark-muted: #9aa1ab;
  --border: #e7e4de;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 30px rgba(22, 25, 31, 0.08);
  --shadow-lg: 0 20px 50px rgba(22, 25, 31, 0.14);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  background: var(--accent);
  color: #1a1304;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}
.btn-accent:hover { background: #fbb024; }

.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--dark-3); }

.btn-light-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid #cfcabe;
}
.btn-light-outline:hover { border-color: var(--accent-dark); color: var(--accent-dark); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(22, 25, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.01em;
}
.logo svg { flex-shrink: 0; }
.logo span { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--white); }

.header-contact {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-phone {
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
}
.header-phone small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-on-dark-muted);
}
.header-phone:hover { color: var(--accent); }

.btn-header {
  padding: 11px 22px;
  font-size: 14px;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.2s;
}

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(245, 158, 11, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(245, 158, 11, 0.07), transparent 55%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--text-on-dark);
  padding: 88px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.12;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 19px;
  color: var(--text-on-dark-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.hero-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0 36px;
  gap: 24px;
}
.hero-stat b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.hero-stat b i { font-style: normal; color: var(--accent); }
.hero-stat span {
  font-size: 14px;
  color: var(--text-on-dark-muted);
}

/* ============ Sections ============ */
.section { padding: 92px 0; }
.section-dark {
  background: linear-gradient(165deg, var(--dark) 0%, var(--dark-2) 100%);
  color: var(--text-on-dark);
}
.section-white { background: var(--white); }

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}
.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.section-dark .section-label { color: var(--accent); }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-dark .section-head h2 { color: var(--white); }
.section-head p {
  font-size: 18px;
  color: var(--text-muted);
}
.section-dark .section-head p { color: var(--text-on-dark-muted); }

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 158, 11, 0.5);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 30px; height: 30px; stroke: var(--accent-dark); }

.service-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}
.service-card p {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.service-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-dark);
}

/* ============ AI Design ============ */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-feature {
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
}
.ai-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(245, 158, 11, 0.13);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-feature-icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.ai-feature h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.ai-feature p {
  font-size: 15.5px;
  color: var(--text-on-dark-muted);
}

.ai-visual {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.ai-visual svg { width: 100%; height: auto; }

.ai-actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ Process ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  position: relative;
}
.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--dark);
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
}
.process-step h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.process-step p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ============ Advantages ============ */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.adv-card {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 30px 26px;
}
.adv-card svg { width: 32px; height: 32px; stroke: var(--accent); margin-bottom: 18px; }
.adv-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.adv-card p {
  font-size: 15px;
  color: var(--text-on-dark-muted);
}

/* ============ Prices ============ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured {
  background: var(--dark);
  border-color: var(--dark);
  position: relative;
}
.price-tag {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--accent);
  color: #1a1304;
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.price-card.featured h3 { color: var(--white); }
.price-from {
  font-size: 15px;
  color: var(--text-muted);
}
.price-card.featured .price-from { color: var(--text-on-dark-muted); }
.price-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin: 6px 0 22px;
}
.price-card.featured .price-value { color: var(--accent); }
.price-value small { font-size: 17px; font-weight: 700; color: var(--text-muted); }
.price-card ul {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.price-card li {
  padding: 8px 0 8px 30px;
  font-size: 15px;
  color: var(--text-muted);
  position: relative;
}
.price-card.featured li { color: var(--text-on-dark-muted); }
.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}
.price-note {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
}
.price-note a { color: var(--accent-dark); font-weight: 700; }

/* ============ Contacts ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-person {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
.contact-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #1a1304;
  flex-shrink: 0;
}
.contact-person b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}
.contact-person span {
  font-size: 15px;
  color: var(--text-on-dark-muted);
}
.contact-phone {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.contact-phone:hover { color: var(--accent); }
.contact-hours {
  font-size: 15px;
  color: var(--text-on-dark-muted);
  margin-bottom: 28px;
}
.contact-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-on-dark-muted);
  margin: -12px 0 26px;
}
.contact-address svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-whatsapp {
  background: #25d366;
  color: #06330f;
}
.btn-whatsapp:hover { background: #3be077; }
.btn-telegram {
  background: #2aabee;
  color: #04263a;
}
.btn-telegram:hover { background: #4dbbf2; }

.contact-info h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}
.contact-info p {
  font-size: 18px;
  color: var(--text-on-dark-muted);
  margin-bottom: 26px;
}
.contact-points { list-style: none; }
.contact-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 16px;
  color: var(--text-on-dark);
}
.contact-points svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ============ Geography ============ */
.geo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.geo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}
.geo-pill:hover {
  border-color: var(--accent-dark);
  transform: translateY(-2px);
}
.geo-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.geo-pill-main {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}
.geo-pill-main::before { background: var(--accent); }
.geo-note {
  margin-top: 30px;
  text-align: center;
  font-size: 15.5px;
  color: var(--text-muted);
}
.geo-note a { color: var(--accent-dark); font-weight: 700; }

/* ============ Footer ============ */
.site-footer {
  background: #101319;
  color: var(--text-on-dark-muted);
  padding: 44px 0;
  font-size: 14.5px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .logo { font-size: 18px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.footer-phone {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}
.footer-phone:hover { color: var(--accent); }
.footer-address {
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

/* ============ Floating call button (mobile) ============ */
.fab-call {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
  align-items: center;
  justify-content: center;
  animation: pulse 2.4s infinite;
}
.fab-call svg { width: 26px; height: 26px; stroke: #1a1304; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .ai-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 24px; font-size: 16px; }
  .burger { display: block; }
  .header-contact .btn-header { display: none; }
  .hero { padding-top: 56px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .price-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .fab-call { display: flex; }
  .contact-card { padding: 28px 22px; }
}

@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .header-phone small { display: none; }
  .hero-actions .btn { width: 100%; }
}
