/* ============================================================
   global.css — trademark.rv.ua
   PATENTLAB | Юлія Кутузова
   ============================================================ */

/* === 1. @font-face Manrope (self-hosted woff2) ============= */

@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* === 2. CSS Custom Properties (Design Tokens) ============== */

:root {
  /* Brand colours */
  --black:        #231f20;
  --orange:       #ff6b00;
  --white:        #ffffff;
  --gray-50:      #f6f5f5;
  --gray-100:     #eceaea;
  --gray-200:     #d6d4d4;
  --gray-400:     #9e9b9b;
  --gray-600:     #5c5858;
  --orange-muted: rgba(255, 107, 0, 0.12);

  /* Layout */
  --container-max: 1200px;
  --gap:           20px;
  --radius:        8px;
  --section-pad:   80px;
  --header-h:      70px;

  /* Typography */
  --font:          'Manrope', system-ui, -apple-system, sans-serif;
}

/* === 3. Reset / Base ======================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Disable tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
}

img, picture, svg {
  display: block;
  max-width: 100%;
}

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

a:hover { text-decoration: underline; }

ul, ol { list-style: none; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* === 4. 12-колонкова сітка ================================= */

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.col-12 { grid-column: span 12; }
.col-10 { grid-column: span 10; }
.col-8  { grid-column: span 8;  }
.col-7  { grid-column: span 7;  }
.col-6  { grid-column: span 6;  }
.col-5  { grid-column: span 5;  }
.col-4  { grid-column: span 4;  }
.col-3  { grid-column: span 3;  }
.col-2  { grid-column: span 2;  }

/* Center helpers (offset grid) */
.col-10-center {
  grid-column: 2 / span 10;
}

/* === 5. Секційні стилі: .s1 / .s2 / .s3 =================== */

.section {
  padding: var(--section-pad) 0;
}

.s1 { background: var(--white);   color: var(--black); }
.s2 { background: var(--gray-50); color: var(--black); }
.s3 { background: var(--orange);  color: var(--white); }

/* Cards per section */
.s1 .card { background: var(--gray-50); }
.s2 .card { background: var(--white); }
.s3 .card {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Buttons inverted on .s3 */
.s3 .btn-primary {
  background: var(--white);
  color: var(--orange);
  border-color: var(--white);
}
.s3 .btn-outline {
  color: var(--white);
  border-color: var(--white);
}
.s3 .btn-primary:hover {
  background: var(--gray-50);
}

/* Section heading block */
.section-head {
  margin-bottom: 40px;
}
.section-head .subtitle {
  font-size: 20px;
  margin-top: 12px;
  color: var(--gray-600);
  max-width: 700px;
}
.s3 .section-head .subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* === 6. Типографіка ======================================== */

h1 {
  font-size: clamp(2.25rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.0rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

small, .text-small {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.text-orange { color: var(--orange); }
.text-muted  { color: var(--gray-600); }

/* === 7. Кнопки ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; opacity: 0.9; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: #e55f00;
  border-color: #e55f00;
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  opacity: 1;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* === 8. Картки (.card) ===================================== */

.card {
  padding: 28px 24px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
  color: var(--orange);
}

.card__number {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}

.card h3 { margin-bottom: 4px; }
.card p  { color: var(--gray-600); font-size: 13px; }
.s3 .card p { color: rgba(255, 255, 255, 0.75); }

.card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  display: block;
}

/* Stat card (Блок 3) */
.card--stat h3 {
  font-size: clamp(1.0rem, 4vw, 1.25rem);
  color: var(--orange);
}

/* Orange highlight box */
.highlight-box {
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15px;
  color: var(--orange);
  background: var(--orange-muted);
  margin-top: 8px;
}

/* === 9. Hero =============================================== */

.hero {
  background: 
    linear-gradient(to top, rgba(18, 18, 18, 0.9) 0%, rgba(255, 102, 0, 0.5) 100%), 
    url('../img/hero.jpg') no-repeat center center / cover fixed;
  min-height: 100vh;
  /* iOS Safari 100vh fix */
  min-height: -webkit-fill-available;
  min-height: 100svh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0;
}

.hero__content {
  text-align: center;
  color: var(--white);
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero h1 { color: var(--white); }

.hero__desc {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  max-width: 680px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

/* === 10. Timeline (Блок 7) ================================= */

.timeline {
  list-style: none;
  position: relative;
  padding-left: 64px;
  margin-top: 8px;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--orange);
}

.timeline__item {
  position: relative;
  padding: 0 0 40px 0;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

/* Circle number marker */
.timeline__marker {
  position: absolute;
  left: -64px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  z-index: 1;
}

.timeline__body h3 {
  margin-bottom: 4px;
}

.timeline__duration {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.timeline__body p {
  color: var(--gray-600);
  font-size: 13px;
}

/* === 11. Pricing cards (Блок 8) ============================ */

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 2px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.s2 .pricing-card {
  background: var(--white);
  border-color: var(--gray-100);
}

.pricing-card--featured {
  border-color: var(--orange);
}

.pricing-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.pricing-card--featured .pricing-card__label {
  color: var(--orange);
}

.pricing-card__total {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.pricing-table tr {
  border-bottom: 1px solid var(--gray-100);
}

.pricing-table tr:last-child {
  border-bottom: none;
}

.pricing-table td {
  padding: 8px 0;
  line-height: 1.4;
}

.pricing-table td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

/* === 12. Portfolio grid (Блок 13) ========================== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}

.portfolio-item {
  aspect-ratio: 3 / 2;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 8px;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === 13. Калькулятор (Блок 11) ============================= */

.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 16px;
}

.calc-fieldset {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.calc-fieldset legend {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

/* Toggle buttons (radio) */
.calc-toggle {
  display: flex;
  gap: 0;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}

.calc-toggle label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.calc-toggle input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.calc-toggle input[type="radio"]:checked + span,
.calc-toggle label:has(input:checked) {
  background: var(--orange);
  color: var(--white);
}

/* Classes multiselect dropdown */
.calc-classes-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-field-label {
  font-weight: 700;
  color: var(--gray-600);
}

.class-select {
  position: relative;
}

/* Trigger button */
.class-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, color 0.15s;
}

.class-select__trigger.has-value {
  color: var(--black);
}

.class-select__trigger:hover,
.class-select__trigger[aria-expanded="true"] {
  border-color: var(--orange);
}

.class-select__arrow {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.2s;
}

.class-select__trigger[aria-expanded="true"] .class-select__arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.class-select__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  max-height: 320px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.class-select__panel.open {
  display: flex;
}

/* Scrollbar styling */
.class-select__panel { scrollbar-width: thin; scrollbar-color: var(--gray-200) var(--gray-50); }
.class-select__panel::-webkit-scrollbar { width: 6px; }
.class-select__panel::-webkit-scrollbar-track { background: var(--gray-50); }
.class-select__panel::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 3px; }

/* Group label */
.class-select__group-label {
  padding: 8px 14px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  background: var(--gray-50);
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Class item */
.class-select__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 14px;
  border: none;
  background: none;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--black);
  cursor: pointer;
  text-align: left;
  line-height: 1.45;
  transition: background 0.1s;
  border-bottom: 1px solid var(--gray-100);
}

.class-select__item:last-child { border-bottom: none; }

.class-select__item:hover {
  background: var(--orange-muted);
}

.class-select__item.selected {
  background: var(--orange-muted);
  color: var(--orange);
  font-weight: 600;
}

.class-select__num {
  flex-shrink: 0;
  min-width: 24px;
  font-weight: 700;
  color: var(--gray-400);
  font-size: 12px;
  padding-top: 1px;
}

.class-select__item.selected .class-select__num {
  color: var(--orange);
}

/* Row "кількість класів" у таблиці результатів */
.calc-table__meta td {
  padding: 8px 0;
  font-weight: 700;
  color: var(--gray-600);
  border-bottom: 2px solid var(--gray-200);
}

.calc-table__meta td:last-child {
  text-align: right;
  color: var(--orange);
}

/* Remove number spinners (legacy, kept for safety) */
.calc-number-group input[type="number"]::-webkit-outer-spin-button,
.calc-number-group input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-number-group input[type="number"] { -moz-appearance: textfield; }

/* Checkboxes */
.calc-check-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-check-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.calc-check-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
  flex-shrink: 0;
}

/* Result panel */
.calc-result {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 2px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-result__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.calc-table tr { border-bottom: 1px solid var(--gray-100); }
.calc-table tr:last-child { border-bottom: none; }
.calc-table td { padding: 8px 0; }
.calc-table td:last-child { text-align: right; font-weight: 600; }
.calc-table tfoot td { font-weight: 700; font-size: 14px; }

.calc-total {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-top: 8px;
}

/* === 14. FAQ <details> (Блок 12) =========================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--gray-200);
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item summary,
.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* Arrow indicator */
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 20px 0;
  color: var(--gray-600);
  font-size: 13px;
  line-height: 1.8;
}

.faq-answer p + p { margin-top: 10px; }

/* === 15. Sticky header ===================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(35, 31, 32, 0.70);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: var(--black);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* Sections: offset for fixed header on anchor navigation */
section[id] {
  scroll-margin-top: var(--header-h);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

/* Logo */
.logo {
  display: inline-block;
  line-height: 0; /* Прибирає зайві відступи знизу картинки */
}

.logo__img {
  height: 40px;  /* Вкажи потрібну висоту */
  width: auto;   /* Пропорції збережуться автоматично */
  display: block;
}

/* Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}

.main-nav a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  text-decoration: none;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

/* Header phone */
/* Nav footer (phone + socials inside mobile drawer) */
.nav-footer {
  display: none; /* shown only on mobile via media query */
}

/* Header right group (phone + socials) */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-phone {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  text-decoration: none;
}

.header-phone:hover {
  color: var(--orange);
  text-decoration: none;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}

.header-social-link:hover {
  color: var(--white);
  text-decoration: none;
}

/* Burger button (mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Burger → X animation */
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === 16. Footer ============================================ */

.site-footer {
  background: var(--black);
  color: var(--gray-400);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-copy {
  font-size: 12px;
  color: var(--gray-400);
  line-height: 1.8;
}

.footer-copy a {
  color: var(--gray-400);
  text-decoration: underline;
}

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

/* === 17. Utilities ========================================= */

.text-center { text-align: center; }
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

/* "About me" block */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.about-photo {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--gray-200);
}

/* Pricing details (Блок 9) */
.pricing-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 2px solid var(--gray-200);
}

.pricing-detail-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 32px;
  align-items: start;
}

.pricing-detail-item__title {
  font-weight: 700;
  font-size: 15px;
}

.pricing-detail-item__price {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 800;
  color: var(--orange);
  white-space: nowrap;
  text-align: right;
}

.pricing-detail-item__desc {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

.pricing-detail-item__tags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--orange-muted);
  color: var(--orange);
}

/* Contacts section */
.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts-photo {
  width: 50%;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--gray-200);
  display: block;
}

.contacts-info__name {
  font-weight: 800;
  font-size: 18px;
}

.contacts-info__title {
  color: var(--gray-600);
  font-size: 13px;
}

.contacts-info__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.contacts-info__row a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.15s;
}
.contacts-info__row a:hover { color: var(--orange); text-decoration: none; }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  background: var(--gray-50);
  color: var(--black);
  text-decoration: none;
  transition: background 0.15s;
}
.social-link:hover { background: var(--gray-100); text-decoration: none; }
.social-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Map block */
.contacts-map {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.contacts-map iframe {
  display: block;
  width: 100%;
}

.contacts-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
  background: var(--gray-50);
  font-style: normal;
  font-size: 13px;
  line-height: 1.65;
  color: var(--black);
  border-top: 1px solid var(--gray-100);
}

.contacts-address svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--orange);
}

/* === 17b. Floating messenger button (FAB) ================== */

.fab-wrap {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 500;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
}

.fab-main {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  border: none;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,107,0,0.45);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.fab-main:hover {
  background: #e05e00;
  box-shadow: 0 6px 20px rgba(255,107,0,0.55);
}
.fab-main svg {
  transition: transform 0.3s ease;
}
.fab-wrap.open .fab-main svg {
  transform: rotate(45deg);
}

.fab-items {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab-wrap.open .fab-items {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.fab-item {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.fab-item:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 16px rgba(0,0,0,0.30);
}
.fab-item--tg  { background: #26a5e4; }
.fab-item--vb  { background: #7360f2; }
.fab-item--fb  { background: #0084ff; }

/* === 18. Mobile @media (max-width: 768px) ================== */

@media (max-width: 768px) {

  :root {
    --section-pad: 56px;
    --header-h:    60px;
  }

  /* Grid collapse */
  .col-4, .col-6, .col-3, .col-2,
  .col-8, .col-10, .col-10-center {
    grid-column: span 12;
  }

  /* Header */
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--black);
    padding: 16px 20px 24px;
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-open .main-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .main-nav a {
    font-size: 16px;
    padding: 10px 0;
    display: block;
    color: rgba(255, 255, 255, 0.85);
  }

  .burger { display: flex; }
  .header-right { display: none; }

  .nav-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
  }

  .nav-footer__phone {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
  }

  .nav-footer__phone:hover {
    color: var(--orange);
    text-decoration: none;
  }

  .nav-footer__socials {
    display: flex;
    gap: 16px;
  }

  .nav-footer__socials .header-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
  }

  .nav-footer__socials .header-social-link:hover {
    color: var(--white);
  }

  /* Hero */
  .hero { min-height: 100vh; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photo {
    max-width: 260px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }

  /* Calculator */
  .calculator {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing detail */
  .pricing-detail-item {
    grid-template-columns: 1fr;
  }
  .pricing-detail-item__price { text-align: left; }

  /* Social links */
  .social-links { flex-wrap: wrap; }

  /* Footer */
  .footer-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  /* Timeline */
  .timeline { padding-left: 50px; }
  .timeline__marker { left: -50px; width: 34px; height: 34px; font-size: 12px; }
  .timeline::before { left: 16px; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn-group .btn { text-align: center; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}
