/* ====== BASE ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* основной цвет как на визитке */
    --blue: #004A88;
    --blue-dark: #003466;
    --accent: #f5c04f;
    --text: #0f172a;
    --text-light: #e5e7eb;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --radius: 10px;
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.15);
    --max-width: 1120px;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    background-color: #ffffff;
    line-height: 1.6;
}

/* ====== LAYOUT ====== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 64px 0;
}

.section-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 32px;
}

/* ====== HEADER ====== */

.site-header {
    background-color: var(--blue);
    color: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* кликабельный логотип (иконка + Handyman Services) */
.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.logo-link:hover {
    opacity: 0.9;
}

.site-logo {
    height: 126px; /* было 42px → стало x3 */
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-ac {
    font-weight: 800;
    font-size: 1.8rem;
    background-color: var(--white);
    color: var(--blue);
    padding: 4px 10px;
    border-radius: 6px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-tagline {
    font-size: 0.8rem;
    opacity: 0.85;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
}

/* Главное меню: Services / How It Works / Reviews */
.main-nav a:not(.btn) {
    flex: 1;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
}

.main-nav a:hover {
    opacity: 1;
}

/* ====== BUTTONS ====== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    background-color: var(--accent);
    color: #1f2933;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
    background-color: #facc6b;
}

.btn-small {
    padding: 8px 14px;
    font-size: 0.9rem;
    box-shadow: none;
}

.btn-full {
    width: 100%;
    margin-top: 8px;
}

/* ====== HERO ====== */

.hero {
    background-color: var(--blue);
    color: var(--white);
    padding: 64px 0 56px;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.hero-content h1 {
    font-size: 2.4rem;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 16px;
}

.hero-list {
    list-style: none;
    margin-bottom: 20px;
}

.hero-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
    font-size: 0.96rem;
}

.hero-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-phone {
    font-size: 0.95rem;
}

.hero-phone a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.hero-image img {
    max-width: 960px; /* 320px × 3 */
    width: 100%;
    height: auto;
    display: block;
}

/* ====== SERVICES ====== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-soft);
}

.service-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.service-card ul {
    padding-left: 18px;
    font-size: 0.95rem;
}

/* ====== HOW IT WORKS ====== */

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
    justify-content: center;
}

.step {
    flex: 1 1 240px;
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-soft);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-color: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ====== REVIEWS ====== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.review-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow-soft);
    font-size: 0.95rem;
}

.review-author {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #4b5563;
}

/* ====== CONTACT ====== */

.section-contact {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr;
    gap: 32px;
    align-items: flex-start;
}

.contact-text {
    margin: 12px 0 16px;
}

.contact-list {
    list-style: none;
    font-size: 0.95rem;
}

.contact-list li {
    margin-bottom: 6px;
}

.contact-list a {
    color: var(--accent);
    text-decoration: none;
}

.contact-form {
    background-color: var(--white);
    color: #111827;
    border-radius: 16px;
    padding: 20px 18px 18px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.inline-group {
  display: flex;
  gap: 12px;
}

.inline-group > div {
  flex: 1 1 50%;
  min-width: 0; /* КРИТИЧЕСКИ важно для iOS */
}

.inline-group input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}

.inline-group input {
  height: 48px;
  box-sizing: border-box;
}

.form-note {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #6b7280;
}

/* блок соцсетей в контактах */
.social-block {
    margin-top: 20px;
}

/* Follow AbbrevioCorp: текст + иконки на новой строке */
.section-contact .social-block {
    display: block;
}

.section-contact .social-label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px; /* отступ до иконок */
}

.section-contact .social-links {
    display: flex;
    align-items: center;
    gap: 20px; /* расстояние между большими иконками */
}

/* базовый размер иконок (например, для футера) */
.social-links a {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.social-links i {
    font-size: 0.9rem;
}

/* ====== BIG SOCIAL ICONS IN REQUEST SERVICE (ТОЛЬКО этот блок) ====== */
.section-contact .social-links a {
    width: 96px;     /* в 3 раза больше контейнер */
    height: 96px;
}

.section-contact .social-links i {
    font-size: 3.2rem; /* сами иконки ~в 6 раз крупнее */
}

/* ПК: уменьшаем иконки соцсетей на 25% */
.site-footer .social-links a {
    width: 24px;
    height: 24px;
}

.site-footer .social-links i {
    font-size: 0.5rem;
}

/* ====== FOOTER ====== */

.site-footer {
    background-color: #0b1220;
    color: #9ca3af;
    padding: 14px 0;
    font-size: 0.8rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ====== RESPONSIVE ====== */

/* ====== OFFSET ДЛЯ ЯКОРЕЙ ====== */
html{
  --header-offset: 90px; /* десктоп */
  scroll-behavior: smooth;
}

:root{
  --section-pad-top: 64px; /* соответствует .section padding-top на ПК */
}

/* оставь твой .section как есть */
.section{
  padding: var(--section-pad-top) 0;
}

/* якоря: "прячем" верхний padding под header */
#services,
#how-it-works,
#reviews,
#contact{
  scroll-margin-top: calc(var(--header-offset) - var(--section-pad-top) + 12px);
}

/* TABLET PORTRAIT */
@media (max-width: 1024px) and (min-width: 641px){
  html{ --header-offset: 160px; }

  /* планшет: увеличиваем героя (картинку) */
  .hero-image img{
    max-width: 700px;     /* было слишком мало из-за 520px */
    width: 100%;
    height: auto;
  }
}

@media (max-width: 1024px){
  .main-nav{
    display: flex;
    justify-content: center;
    gap: 24px;
    width: 100%;
  }
}

@media (max-width: 900px){
  .hero-inner{
    flex-direction: column-reverse;
    text-align: left;
  }

  .hero-image img{ max-width: 700px; }

  .services-grid,
  .reviews-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-inner{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  html{ --header-offset: 240px; }

  .header-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo{ height: 72px; }

  .main-nav{
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }

  .hero{ padding-top: 40px; }

  .hero-content h1{ font-size: 2rem; }

  .services-grid,
  .reviews-grid{ grid-template-columns: 1fr; }

  /* важно: чтобы не ломать горизонтальные отступы */
  .section{ padding: 24px 0; }

  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .section-contact .social-links a{
    width: 64px;
    height: 64px;
  }

  .section-contact .social-links i{
    font-size: 2.2rem;
  }
}

/* ====== MOBILE ====== */

/* ====== END OF FILE ====== */

/* ====== SOCIAL ICON ATTENTION (FB + IG ONLY) ====== */
.social-links a[href*="facebook"],
.social-links a[href*="instagram"]{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  animation: socialPulse 2.2s ease-in-out infinite;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.social-links a[href*="facebook"]:hover,
.social-links a[href*="instagram"]:hover{
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  opacity: 1;
}

.social-links a[href*="facebook"]::after,
.social-links a[href*="instagram"]::after{
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(
    circle,
    rgba(255,255,255,.35),
    rgba(255,255,255,0) 60%
  );
  opacity: .35;
  filter: blur(2px);
  pointer-events: none;
}

@keyframes socialPulse{
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce){
  .social-links a[href*="facebook"],
  .social-links a[href*="instagram"]{
    animation: none;
  }
}

/* ===== Follow AbbrevioCorp – CENTERED & SAME STYLE AS REQUEST SERVICE ===== */

.follow-socials-wrapper {
    margin-top: 28px;
    text-align: center;
}

.follow-title {
    font-size: 2.25rem;   /* как Request Service */
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
}

.follow-socials {
    display: flex;
    justify-content: center;
    gap: 24px;
}
