/* KATALIZATORI.GE — დიზაინი
   ძირითადი ფერები იცვლება :root ბლოკში.
   სლაიდერის სიმაღლე: .slider | მთავარი სათაური: .slide-content h2
*/

@font-face {
  font-family: "Katalizatori Georgian";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/georgian-regular.woff") format("woff");
}

@font-face {
  font-family: "Katalizatori Georgian";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/georgian-bold.woff") format("woff");
}

@font-face {
  font-family: "Katalizatori Latin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/latin-regular.woff") format("woff");
}

@font-face {
  font-family: "Katalizatori Latin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/latin-bold.woff") format("woff");
}

/* ძირითადი ფერები */
:root {
  --ink: #202c25;
  --muted: #727a71;
  --green: #234f3e;
  --deep: #183b2e;
  --lime: #deecb8;
  --paper: #fdfdf9;
  --tint: #f0f3eb;
  --line: #e0e5da;
  --font: "Katalizatori Georgian", "Katalizatori Latin", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
  margin: 0;
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  color: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, .slider:focus-visible {
  outline: 3px solid #93b66b;
  outline-offset: 4px;
}

::selection {
  background: var(--lime);
  color: var(--deep);
}

.container {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}

.icon {
  display: block;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  color: white;
  background: var(--green);
}

.skip:focus {
  top: 10px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 48px;
  padding: 11px 21px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}

.button:hover {
  background: var(--deep);
  transform: translateY(-1px);
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button-light {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--deep);
}

.button-light:hover {
  background: #eaf4cd;
}

/* 01. ზედა მენიუ */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 253, 249, .96);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green);
  color: var(--lime);
}

.wordmark {
  font: 700 23px/1 "Katalizatori Latin", sans-serif;
  letter-spacing: -1px;
}

.wordmark span {
  color: #67845f;
}

.navigation {
  display: flex;
  gap: 29px;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.navigation a:hover {
  color: #5d7d44;
}

.header-button {
  min-height: 42px;
  padding: 8px 16px;
  gap: 17px;
  font-size: 11px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}

/* 02. მთავარი სლაიდერი */
.hero {
  padding-top: 28px;
}

.slider {
  position: relative;
  isolation: isolate;
  height: 435px;
  overflow: hidden;
  border-radius: 20px;
  color: white;
  background: var(--deep);
  touch-action: pan-y;
}

.slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.slide-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: image-appear .45s ease-out;
}

.slide:first-of-type .slide-image {
  object-position: center top;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 25, 18, .92), rgba(10, 25, 18, .71) 34%, rgba(10, 25, 18, .14) 73%, rgba(10, 25, 18, .03));
  pointer-events: none;
}

.slide-content {
  position: relative;
  z-index: 1;
  max-width: 630px;
  padding: 45px 50px 78px;
}

.slide-eyebrow {
  margin-bottom: 16px;
  color: #e5efcc;
  font-size: 11px;
  font-weight: 700;
}

.slide-content h2 {
  font-size: clamp(32px, 3.2vw, 43px);
  line-height: 1.4;
  letter-spacing: -.035em;
}

.slide-description {
  max-width: 350px;
  margin-top: 14px;
  color: #e0e6dd;
  font-size: 12px;
  line-height: 1.9;
}

.slide-content .button {
  margin-top: 24px;
}

.slider-controls {
  position: absolute;
  left: 50px;
  right: 28px;
  bottom: 23px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.slider-position, .slider-arrows, .slide-dots {
  display: flex;
  align-items: center;
}

.slider-position {
  gap: 20px;
}

.slide-counter {
  font: 700 11px/1 "Katalizatori Latin", sans-serif;
  letter-spacing: 1px;
  white-space: nowrap;
}

.counter-divider {
  color: #cad6c6;
  margin-left: 4px;
}

.slide-dots {
  gap: 6px;
}

.slide-dot {
  position: relative;
  width: 29px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
}

.slide-dot::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .4);
}

.slide-dot[aria-pressed="true"]::after {
  background: var(--lime);
}

.slider-arrows {
  gap: 8px;
}

.slider-control {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: rgba(15, 32, 22, .44);
  backdrop-filter: blur(6px);
  color: white;
}

.slider-control:hover {
  background: rgba(255, 255, 255, .2);
}

.slider-control .icon {
  width: 17px;
  height: 17px;
}

.pause-control {
  margin-right: 9px;
}

.previous-icon {
  transform: rotate(180deg);
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  color: var(--muted);
}

.hero-caption p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
}

.hero-caption .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.hero-caption small {
  font-size: 9px;
}

@keyframes image-appear {
  from { opacity: .5; }
  to { opacity: 1; }
}

/* 03. მომსახურება */
.services {
  padding: 40px 0 38px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}

.section-heading-row h2, .contact-section h2 {
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: -.025em;
}

.section-label {
  color: var(--muted);
  font-size: 10px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 23px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7f8f2;
}

.service-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 1px solid #dce4d2;
  border-radius: 10px;
  color: var(--green);
}

.service-item h3 {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 7px;
}

.service-item p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

/* 04. ფილიალები და მოკლე ფორმა */
.contact-section {
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  gap: 64px;
  padding: 35px 39px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f2f5ed;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.branch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
}

.branch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #d8e0cf;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}

.branch > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.branch .icon {
  width: 17px;
  height: 17px;
}

.branch:hover {
  border-color: #86a079;
}

.branch[aria-pressed="true"] {
  color: var(--green);
  background: #e4ecd9;
  border-color: #bdcdae;
}

.branch-indicator {
  visibility: hidden;
}

.branch[aria-pressed="true"] .branch-indicator {
  visibility: visible;
}

.branch-note {
  max-width: 330px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

#inquiry-form {
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field label {
  font-size: 10px;
  font-weight: 700;
}

.field label span {
  font-weight: 400;
  color: var(--muted);
}

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #dbe2d3;
  border-radius: 7px;
  background: #fdfefb;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.6;
  outline: none;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #e2ebd7;
}

.field input::placeholder, .field textarea::placeholder {
  color: #7c8577;
}

.question-field {
  margin-top: 13px;
}

.field textarea {
  resize: vertical;
  min-height: 65px;
}

.form-button {
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  min-height: 45px;
  font-size: 11px;
}

.form-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

/* კატალოგი: კომპაქტური ველები; დიდი სიები HTML-ში არ ინახება. */
.catalog-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.catalog-row + .catalog-row { margin-top: 12px; }
.catalog-help { margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.catalog-feedback { color: var(--green); font-size: 10px; line-height: 1.7; }
.catalog-feedback:has(#catalog-status:not(:empty)) { margin-top: 6px; }
.text-button { padding: 4px 0; border: 0; background: none; color: var(--green); text-decoration: underline; font-size: 11px; }
.price-result { margin-top: 14px; padding: 14px 15px; border: 1px solid #ccdabc; border-radius: 9px; background: #e7eedc; }
.price-heading { display: flex; flex-direction: column; gap: 4px; color: var(--green); }
.price-heading > span { font-size: 9px; }
.price-heading strong { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.price-result p { margin-top: 4px; font-size: 9px; }
.price-result small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.inquiry-details { margin-top: 14px; }
.inquiry-details summary { color: var(--green); font-size: 10px; cursor: pointer; }
.inquiry-details summary span { margin-left: 4px; color: var(--muted); font-size: 9px; }
.inquiry-details[open] summary { margin-bottom: 13px; }
.catalog-source-link { font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.sources-page { max-width: 850px; padding-block: 40px; font-size: 14px; line-height: 1.9; }
.sources-page h1 { margin-top: 25px; font-size: 27px; }
.sources-page h2 { margin-top: 25px; font-size: 18px; }
.sources-page p, .sources-page ul { margin-top: 15px; }
.sources-page ul { padding-left: 25px; }
.sources-page li { margin-bottom: 10px; }
.sources-page a { color: var(--green); text-decoration: underline; }
.sources-page code { overflow-wrap: anywhere; }

/* 05. ქვედა ნაწილი */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 27px;
  padding-bottom: 27px;
  color: var(--muted);
  font-size: 10px;
}

.footer-brand {
  color: var(--green);
  font: 700 16px "Katalizatori Latin", sans-serif;
  letter-spacing: -.5px;
}

/* მომზადებული შეტყობინების ფანჯარა */
dialog {
  width: min(530px, calc(100% - 32px));
  padding: 27px;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 25px 90px #0003;
}

dialog::backdrop {
  background: rgba(17, 36, 26, .68);
  backdrop-filter: blur(5px);
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.dialog-heading h2 {
  font-size: 20px;
  line-height: 1.5;
}

.dialog-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.dialog-close .icon {
  width: 17px;
  height: 17px;
}

#message-description {
  margin-top: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

#message-output {
  width: 100%;
  height: 215px;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tint);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.9;
}

.dialog-copy {
  width: 100%;
  margin-top: 13px;
}

#copy-status {
  min-height: 18px;
  margin-top: 10px;
  color: var(--green);
  font-size: 11px;
  text-align: center;
}

.dialog-note {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

/* ტაბლეტი */
@media (max-width: 1000px) {
  .container { width: calc(100% - 48px); }
  .navigation { gap: 20px; font-size: 11px; }
  .wordmark { font-size: 21px; }
  .header-button { padding-inline: 12px; }
  .slide-content { padding-left: 35px; max-width: 560px; }
  .slider-controls { left: 35px; }
  .service-item { padding: 20px 15px; gap: 10px; }
  .service-icon { width: 31px; height: 31px; border: 0; }
  .service-item h3 { font-size: 11px; }
  .service-item p { font-size: 10px; }
  .contact-section { gap: 38px; padding: 29px; }
  .contact-section h2 { font-size: 21px; }
}

/* მობილური */
@media (max-width: 700px) {
  html { scroll-padding-top: 88px; }
  .container { width: calc(100% - 32px); }
  .header-inner { height: 68px; }
  .wordmark { font-size: 22px; }
  .header-button { display: none; }
  .menu-toggle { display: flex; }
  .navigation {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 15px 24px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 13px;
    box-shadow: 0 10px 20px #2233260a;
  }
  .navigation.open { display: flex; }
  .navigation a { padding: 12px 0; }
  .hero { padding-top: 18px; }
  .slider { height: 415px; border-radius: 15px; }
  .slide-image { object-position: 74% center; }
  .slide:first-of-type .slide-image { object-position: 78% top; }
  .slide::after {
    background: linear-gradient(90deg, rgba(9, 24, 16, .87), rgba(9, 24, 16, .56) 52%, rgba(9, 24, 16, .15)), linear-gradient(0deg, rgba(9, 24, 16, .6), transparent 35%);
  }
  .slide-content { padding: 41px 24px 78px; max-width: 500px; }
  .slide-eyebrow { font-size: 9px; margin-bottom: 16px; }
  .slide-content h2 { font-size: clamp(28px, 7vw, 36px); line-height: 1.45; }
  .slide-description { font-size: 11px; max-width: 280px; margin-top: 16px; }
  .slide-content .button { margin-top: 23px; font-size: 11px; min-height: 46px; padding-inline: 17px; }
  .slider-controls { left: 24px; right: 20px; bottom: 20px; gap: 10px; }
  .slider-position { gap: 12px; }
  .slide-counter { font-size: 10px; letter-spacing: .5px; }
  .slide-dots { gap: 4px; }
  .slide-dot { width: 18px; }
  .slider-control { width: 34px; height: 34px; }
  .slider-arrows { gap: 6px; }
  .pause-control { margin-right: 1px; }
  .hero-caption { margin-top: 11px; gap: 5px; }
  .hero-caption p { font-size: 8px; gap: 6px; }
  .hero-caption small { font-size: 7px; }
  .hero-caption .icon { width: 12px; height: 12px; }
  .services { padding: 28px 0; }
  .section-heading-row { margin-bottom: 16px; }
  .section-heading-row h2 { font-size: 21px; }
  .section-label { display: none; }
  .service-grid { grid-template-columns: 1fr; gap: 9px; }
  .service-item { padding: 16px 18px; gap: 15px; border-radius: 11px; }
  .service-icon { width: 33px; height: 33px; }
  .service-item h3 { font-size: 12px; margin-bottom: 4px; }
  .service-item p { font-size: 11px; }
  .contact-section { grid-template-columns: 1fr; gap: 28px; padding: 23px 20px; border-radius: 14px; }
  .contact-section h2 { font-size: 22px; }
  .branch-list { flex-direction: row; gap: 6px; margin-top: 17px; }
  .branch { padding: 12px 8px; font-size: 10px; justify-content: center; }
  .branch > span { gap: 4px; }
  .branch .icon { width: 13px; height: 13px; }
  .branch .branch-indicator { display: none; }
  .branch-note { font-size: 9px; margin-top: 11px; }
  .contact { padding-top: 24px; border-top: 1px solid #dbe2d3; }
  .form-row { grid-template-columns: 1.5fr 1fr; gap: 10px; }
  .field input, .field select, .field textarea { font-size: 12px; padding-inline: 10px; }
  .catalog-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .catalog-row input, .catalog-row select { font-size: 16px; }
  .price-heading strong { font-size: 15px; }
  .field label { font-size: 10px; }
  #inquiry-form { margin-top: 16px; }
  .form-note { font-size: 8px; }
  .footer { flex-wrap: wrap; gap: 9px; padding-block: 23px; font-size: 9px; }
  .footer-brand { font-size: 15px; }
  .footer > p { order: 3; flex-basis: 100%; font-size: 9px; }
  dialog { padding: 22px 19px; }
  .dialog-heading h2 { font-size: 18px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 24px); }
  .slide-content { padding-inline: 20px; }
  .slide-content h2 { font-size: 26px; }
  .slider-controls { left: 20px; right: 16px; }
  .slider-position { gap: 9px; }
  .slide-dot { width: 14px; }
  .slider-control { width: 31px; height: 31px; }
  .contact-section { padding: 22px 16px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
