/* televizortemiri.az — OLED-inspired editorial service design */
:root {
  --page: min(calc(100% - 48px), 1180px);
  --ink: #17131f;
  --text: #51495d;
  --muted: #776f81;
  --coral: #ff6b4a;
  --coral-dark: #d9472b;
  --gold: #ffcf70;
  --violet: #6f4bf2;
  --cream: #fff9f4;
  --soft: #f6f1f8;
  --line: #e8dfe9;
  --panel: #fff;
  --radius: 26px;
  --shadow: 0 24px 60px rgba(39, 23, 50, .11);
}

html { background: var(--cream); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3, h4, .brand {
  color: var(--ink);
  font-family: "Sora", "DM Sans", sans-serif;
  letter-spacing: -.04em;
}
.container { width: var(--page); }

.topbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 7px max(24px, calc((100vw - 1180px) / 2));
  color: #f3ebf8;
  background: var(--ink);
}
.topbar .top-meta { color: #d9d0df; }
.topbar .header-phone {
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--coral);
  box-shadow: none;
}
.topbar .header-phone:hover { color: #fff; background: var(--coral-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: 78px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border: 0;
  background: rgba(255,249,244,.94);
  box-shadow: 0 1px 0 rgba(23,19,31,.09);
  backdrop-filter: blur(18px);
}
.site-header .brand { min-height: 50px; }
.brand-logo-img { width: 232px; max-width: 100%; height: 48px; object-fit: contain; object-position: left center; }
.brand-icon-img { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 14px; background: transparent; }
.nav { gap: 2px; font-size: 13px; font-weight: 700; }
.nav a, .nav .nav-link { padding: 10px 11px; border-radius: 999px; color: #62596c; }
.nav a:hover, .nav .nav-link:hover { color: var(--coral-dark); background: #ffe9e1; }
.header-actions { gap: 9px; }
.language-select { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.nav-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.nav-toggle .navbar-toggler-icon {
  position: relative; display: block; width: 21px; height: 16px;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: none !important;
}
.nav-toggle .navbar-toggler-icon::before { position: absolute; top: 5px; right: 0; left: 0; height: 2px; content: ""; background: var(--coral); }
.mobile-offcanvas { color: var(--text); background: var(--cream); }
.mobile-offcanvas .btn-close { border: 1px solid var(--line); border-radius: 12px; background-color: #fff; filter: none; opacity: 1; }

.btn { min-height: 47px; padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 800; box-shadow: none; }
.btn.primary { border-color: var(--coral); color: #fff; background: var(--coral); box-shadow: 0 12px 28px rgba(255,107,74,.24); }
.btn.primary:hover { border-color: var(--coral-dark); color: #fff; background: var(--coral-dark); transform: translateY(-2px); }
.btn.secondary, .btn.ghost { border: 1px solid #d8cadc; color: var(--ink); background: rgba(255,255,255,.9); }
.btn.secondary:hover, .btn.ghost:hover { border-color: var(--coral); color: var(--coral-dark); }

.hero-shell { width: 100%; margin: 0; padding: 25px 0 0; overflow: visible; border: 0; border-radius: 0; background: var(--cream); box-shadow: none; }
.hero-shell::before, .hero-shell::after { display: none; }
.hero.container {
  position: relative;
  min-height: 620px;
  padding: 68px 62px;
  overflow: hidden;
  grid-template-columns: minmax(0,1.08fr) 385px;
  gap: 58px;
  align-items: center;
  border-radius: 38px;
  background:
    linear-gradient(90deg, rgba(23,19,31,.98) 0%, rgba(23,19,31,.93) 48%, rgba(23,19,31,.42) 100%),
    url("/assets/img/televizortemiri-hero.webp") 78% center / cover no-repeat;
  box-shadow: 0 30px 80px rgba(31,20,39,.18);
}
.hero.container::before {
  position: absolute; left: -90px; bottom: -150px; width: 360px; height: 360px;
  border: 52px solid rgba(255,107,74,.08); border-radius: 50%; content: "";
}
.hero.container::after {
  position: absolute; top: 0; right: 0; width: 46%; height: 8px;
  background: linear-gradient(90deg,transparent,var(--coral),var(--gold)); content: "";
}
.hero-copy, .booking-card { position: relative; z-index: 2; }
.hero-copy { max-width: 625px; }
.hero-kicker { display: inline-flex; margin: 0 0 22px; padding: 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.hero-kicker span, .hero-kicker strong { padding: 7px 12px; border: 0; border-radius: 999px; font-size: 11px; line-height: 1.2; }
.hero-kicker span { color: var(--ink); background: var(--gold); }
.hero-kicker strong { color: #f8f5ff; background: transparent; }
.hero h1 { max-width: 640px; margin: 0; color: #fff; font-size: clamp(46px,5.3vw,72px); line-height: .98; letter-spacing: -.07em; }
.hero-copy > p { max-width: 620px; margin: 22px 0 0; color: #d9d0df; font-size: 18px; line-height: 1.65; }
.hero-actions { margin-top: 30px; gap: 11px; }
.hero .btn.primary { color: #fff; background: var(--coral); }
.hero .btn.secondary { border-color: rgba(255,255,255,.28); color: #fff; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.hero .btn.secondary:hover { border-color: rgba(255,255,255,.58); color: #fff; background: rgba(255,255,255,.14); }
.proof-row { display: none; }

.booking-card {
  width: 100%; max-width: 385px; padding: 29px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 28px;
  color: var(--text); background: rgba(255,255,255,.96);
  box-shadow: 0 32px 80px rgba(0,0,0,.30);
}
.booking-status { padding: 7px 11px; border-radius: 999px; color: #6a3e00; background: #fff1cb; font-size: 11px; }
.booking-status span { width: 8px; height: 8px; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,74,.12); }
.booking-card h2 { margin: 16px 0 8px; color: var(--ink); font-size: 25px; line-height: 1.18; }
.booking-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.mini-form { gap: 10px; margin-top: 17px; }
.mini-form label { gap: 5px; color: var(--ink); font-size: 12px; }
input, select, textarea { min-height: 48px; border: 1px solid #dfd4e1; border-radius: 14px; color: var(--ink); background: #fff; font-size: 14px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(255,107,74,.12); border-color: var(--coral); }

.section { padding: 90px 0 0; }
.section-head { align-items: end; gap: 20px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--coral-dark); font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section-head h2, .work-copy h2 { max-width: 760px; margin: 0; color: var(--ink); font-size: clamp(31px,3.5vw,46px); line-height: 1.08; letter-spacing: -.055em; }
.section-link, .more-link { color: var(--coral-dark); font-size: 13px; font-weight: 850; }

.service-grid, .master-grid, .post-grid, .project-row { gap: 22px; }
.service-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.service-card, .master-card, .project-card, .post-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff;
  box-shadow: 0 9px 30px rgba(39,23,50,.055); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.service-card:hover, .master-card:hover, .project-card:hover, .post-card:hover { border-color: #f0b29f; box-shadow: var(--shadow); transform: translateY(-6px); }
.card-media { background: #eee7f2; }
.service-card .card-media img, .project-card .card-media img, .post-card .card-media img { aspect-ratio: 4/3; object-fit: cover; }
.service-card h2, .service-card h3, .master-card h2, .master-card h3, .project-card h2, .project-card h3, .post-card h2, .post-card h3 { color: var(--ink); font-size: 20px; line-height: 1.28; }
.featured-grid .service-card:first-child { grid-column: span 2; display: grid; grid-template-columns: 1.1fr .9fr; }
.featured-grid .service-card:first-child .card-media, .featured-grid .service-card:first-child .card-media img { height: 100%; min-height: 320px; }
.master-card img { aspect-ratio: 4/5; object-fit: cover; }

.process-section { width: 100%; margin: 94px 0 0; padding: 82px 0; border: 0; border-radius: 0; color: #d9d0df; background: var(--ink); }
.process-layout.container { display: grid; grid-template-columns: .72fr 1.28fr; align-items: start; gap: 72px; padding: 0; }
.process-layout > div:first-child { max-width: 390px; margin: 0; text-align: left; }
.process-section h2, .process-layout h2 { margin: 0; color: #fff; font-size: clamp(32px,3.5vw,46px); line-height: 1.1; }
.process-section .section-copy { margin: 16px 0 0; color: #bfb4c7; font-size: 15px; }
.process-grid { gap: 14px; }
.process-grid article { min-height: 220px; padding: 25px; border: 1px solid rgba(255,255,255,.10); border-radius: 22px; color: #cfc4d6; background: #251d2e; box-shadow: none; }
.process-grid span { width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--coral); font-size: 14px; }
.process-grid article:nth-child(2) span { color: var(--ink); background: var(--gold); }
.process-grid article:nth-child(3) span { background: var(--violet); }
.process-grid h3 { margin: 22px 0 8px; color: #fff; font-size: 18px; }
.process-grid article p { margin: 0; color: #bfb4c7; font-size: 14px; }

.work-showcase { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.work-copy { position: sticky; top: 112px; }
.project-showcase-row { grid-template-columns: repeat(2,minmax(0,1fr)); }

.faq-section { width: var(--page); margin: 94px auto; padding: 58px; border: 0; border-radius: 34px; color: var(--text); background: linear-gradient(135deg,#ffe7de,#f5edff 72%); }
.faq-layout.container { width: 100%; grid-template-columns: 310px 1fr; gap: 54px; }
.faq-intro { position: static; padding: 0; border: 0; background: transparent; box-shadow: none; }
.faq-section .faq-intro h2 { margin: 0; color: var(--ink); font-size: clamp(32px,3.4vw,44px); line-height: 1.1; }
.faq-section .faq-intro p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.faq-list { gap: 10px; }
.faq-list details { border: 1px solid rgba(255,255,255,.86); border-radius: 17px; background: rgba(255,255,255,.78); }
.faq-list summary { min-height: 58px; padding: 15px 50px 15px 18px; color: var(--ink); font-size: 14px; line-height: 1.45; }
.faq-list summary::after { color: #fff; background: var(--coral); }
.faq-list details p { padding: 0 18px 17px; color: var(--muted); font-size: 14px; }

.page-hero, .content-hero, .service-detail-hero {
  width: var(--page); min-height: 0; margin: 34px auto 0; padding: 54px;
  border: 0; border-radius: 32px; color: #d9d0df;
  background: radial-gradient(circle at 85% 0,rgba(255,107,74,.32),transparent 36%),var(--ink);
}
.page-hero h1, .content-hero h1, .service-detail-hero h1 { max-width: 800px; margin: 0; color: #fff; font-size: clamp(36px,4.4vw,54px); line-height: 1.06; }
.page-hero p, .content-hero .content-lead, .service-detail-hero .lead { max-width: 760px; color: #cec3d5; font-size: 16px; }
.content-layout, .service-detail-layout { padding-top: 34px; padding-bottom: 76px; }
.content-article, .service-article, .sidebar-panel, .tag-article, .tag-cta, .detail-body, .contact-form, .contact-card, .error-card, .error-help { border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 12px 40px rgba(39,23,50,.07); }
.content-article, .service-article { color: var(--text); font-size: 16px; line-height: 1.85; }
.content-article { padding: 38px 42px; }
.content-article h2, .content-article h3, .service-article h2, .service-article h3, .tag-article h2, .tag-article h3 { color: var(--ink); }
.service-grid.wide, .project-row.full, .post-grid.full, .master-grid-full { width: var(--page); margin-inline: auto; padding: 38px 0 78px; }
.contact, .detail, .master-profile, .error-shell { width: var(--page); margin-inline: auto; padding-top: 44px; padding-bottom: 76px; }
.tag-list a, .tag-cloud a { border-color: #ead7d0; color: var(--coral-dark); background: #fff5f1; }

.footer { margin: 0; padding: 0; color: #c9bdcf; background: #17131f; }
.footer-inner { width: var(--page); padding: 64px 0; gap: 42px; }
.footer p, .footer a, .footer span { color: #bfb4c7; }
.footer .footer-call, .footer .footer-call span { color: #fff; background: var(--coral); }
.footer strong, .footer h3, .footer .brand, .footer .brand span, .footer .brand b { color: #fff; }
.footer .brand-logo-img { width: 220px; filter: brightness(0) invert(1); }
.footer-links, .footer-contact { gap: 9px; }
.footer-links strong, .footer-contact strong { margin-bottom: 5px; font-size: 12px; letter-spacing: .11em; text-transform: uppercase; }
.footer-bottom { padding: 19px 0; border-top-color: rgba(255,255,255,.10); color: #91869b; }

@media (max-width: 1100px) {
  :root { --page: min(calc(100% - 32px), 880px); }
  .site-header { padding: 8px 16px; }
  .brand-logo-img { width: 205px; }
  .hero.container { grid-template-columns: 1fr; min-height: 0; padding: 58px 48px; gap: 36px; background-position: 68% center; }
  .booking-card { max-width: 580px; }
  .process-layout.container, .faq-layout.container { grid-template-columns: 1fr; gap: 32px; }
  .work-showcase { grid-template-columns: 1fr; }
  .work-copy { position: static; max-width: 680px; }
}

@media (max-width: 760px) {
  :root { --page: calc(100% - 24px); }
  html, body { max-width: 100%; overflow-x: clip; }
  body { font-size: 15px; }
  .topbar { display: flex; width: 100%; max-width: 100%; justify-content: space-between; gap: 8px; padding: 7px 12px; }
  .topbar .top-meta { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .topbar .top-meta .meta-item:nth-child(n+2) { display: none; }
  .topbar .header-phone { min-height: 34px; max-width: 180px; flex: 0 0 auto; padding: 5px 10px; overflow: hidden; font-size: 13px; white-space: nowrap; }
  .topbar .desktop-language { display: none !important; }
  .site-header { width: 100%; max-width: 100%; min-height: 66px; padding: 7px 12px; }
  .site-header .brand { min-width: 0; max-width: calc(100% - 112px); flex: 1 1 auto; overflow: hidden; }
  .brand-logo-img { width: 174px; height: 43px; }
  .header-actions { position: static; width: auto; flex: 0 0 auto; gap: 7px; margin-left: auto; transform: none; }
  .mobile-language.custom-lang-active { width: 43px; max-width: 43px; flex: 0 0 43px; padding: 4px 8px; }
  .mobile-language .lang-code, .mobile-language .lang-chevron { display: none; }
  .mobile-language .lang-trigger { width: 25px; justify-content: center; }
  .nav-toggle { min-width: 44px; flex-basis: 44px; }
  .hero-shell { padding-top: 12px; }
  .hero.container { width: var(--page); padding: 38px 22px 26px; gap: 28px; border-radius: 26px; background: linear-gradient(180deg,rgba(23,19,31,.92),rgba(23,19,31,.78)),url("/assets/img/televizortemiri-hero.webp") 62% center/cover no-repeat; }
  .hero-kicker { max-width: 100%; margin-bottom: 16px; }
  .hero-kicker span, .hero-kicker strong { padding: 6px 8px; font-size: 9px; }
  .hero h1 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(35px,11vw,48px); line-height: 1; }
  .hero-copy > p { margin-top: 16px; font-size: 15px; line-height: 1.6; }
  .hero-actions { margin-top: 21px; }
  .hero-actions .btn { width: 100%; }
  .booking-card { max-width: none; padding: 22px; border-radius: 21px; }
  .booking-card h2 { font-size: 22px; }
  .section { padding-top: 54px; }
  .section-head { display: block; margin-bottom: 21px; }
  .section-head h2 { font-size: 30px; }
  .section-link { display: inline-flex; margin-top: 11px; }
  .service-grid, .post-grid, .project-row, .master-grid, .project-showcase-row { grid-template-columns: 1fr; }
  .featured-grid .service-card:first-child { grid-column: auto; display: block; }
  .featured-grid .service-card:first-child .card-media, .featured-grid .service-card:first-child .card-media img { min-height: 0; height: auto; }
  .process-section { margin-top: 58px; padding: 50px 0; }
  .process-section h2, .faq-section .faq-intro h2 { font-size: 31px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: 0; padding: 21px; }
  .faq-section { margin: 58px auto; padding: 31px 20px; border-radius: 24px; }
  .page-hero, .content-hero, .service-detail-hero { margin-top: 16px; padding: 32px 23px; border-radius: 23px; }
  .page-hero h1, .content-hero h1, .service-detail-hero h1 { font-size: 32px; overflow-wrap: anywhere; }
  .page-hero p, .content-hero .content-lead, .service-detail-hero .lead { font-size: 14px; }
  .content-article { padding: 27px 22px; }
  .service-grid.wide, .project-row.full, .post-grid.full, .master-grid-full { padding-top: 24px; padding-bottom: 58px; }
  .footer-inner { padding: 48px 0; }
}

@media (max-width: 390px) {
  .brand-logo-img { width: 150px; }
  .topbar .header-phone { max-width: 155px; font-size: 12px; }
  .hero-kicker strong { display: none; }
  .hero h1 { font-size: 34px; }
}
