/* ============================================================
   RHONE — дизайн-система «Современная классика»
   Гамма A: слоновая кость / графит / глубокий синий / медь / тауп
   Шрифты: Tinos (serif, заголовки) + системный sans (текст)
   Copyright (c) 2005 Rhone. Все права защищены.
   ============================================================ */

:root {
  /* Palette A */
  --ivory: #F7F3EE;          /* слоновая кость — базовый фон   */
  --graphite: #2B2B2B;       /* графит — текст                  */
  --ink: #1A1A1A;            /* тёмный текст                    */
  --navy: #1F3A5F;           /* глубокий синий — акцент/footer  */
  --navy-soft: #2B4A75;      /* синий lighten                   */
  --copper: #B8894A;         /* медь — основной акцент          */
  --copper-dark: #9A7438;    /* медь hover                      */
  --taupe: #8A7B6D;          /* тауп — вторичный текст          */
  --cloud: #E9E3DA;          /* бежевая линия/плашка            */
  --sand: #FBF9F5;           /* светлая карточка                */
  --white: #FFFFFF;

  /* Typography */
  --font-serif: 'Tinos', 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --fs-h1: clamp(30px, 4.2vw, 56px);
  --fs-h2: clamp(26px, 3vw, 42px);
  --fs-h3: clamp(20px, 2vw, 28px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(31, 58, 95, .10);

  --transition: .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--graphite);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--copper); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--copper-dark); }

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.15; font-weight: 700; color: var(--ink); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: rgba(247,243,238,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--cloud); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.header__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: 2px; }
.header__logo img { height: 80px; width: auto; }
.header__nav { display: flex; align-items: center; gap: 22px; }
.header__nav a { color: var(--graphite); font-size: var(--fs-small); letter-spacing: .4px; }
.header__nav a:hover, .header__nav a.is-active { color: var(--copper); }
.header__phone { font-weight: 600; color: var(--navy); font-size: var(--fs-small); white-space: nowrap; }
.header__burger { display: none; background: none; border: 0; cursor: pointer; font-size: 24px; color: var(--ink); }

@media (max-width: 960px) {
  .header__nav { display: none; }
  .header__burger { display: block; }
  .header__phone { font-size: 12px; }
}

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: var(--radius); font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 600; text-align: center; border: 1px solid transparent; cursor: pointer; transition: var(--transition); }
.btn--copper { background: var(--copper); color: var(--white); }
.btn--copper:hover { background: var(--copper-dark); color: var(--white); }
.btn--outline { border-color: var(--copper); color: var(--copper); background: transparent; }
.btn--outline:hover { background: var(--copper); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--cloud); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); color: var(--white); }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: 560px; padding: 72px 0; color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,26,35,.88) 0%, rgba(31,58,95,.62) 55%, rgba(31,58,95,.25) 100%); }
.hero__content { position: relative; z-index: 1; max-width: 680px; }
.hero__badge { display: inline-block; margin-bottom: 18px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.45); border-radius: 30px; font-size: var(--fs-micro); letter-spacing: 1.5px; text-transform: uppercase; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { font-size: 18px; color: rgba(255,255,255,.9); margin-bottom: 28px; max-width: 560px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero__stat b { display: block; font-family: var(--font-serif); font-size: 34px; color: var(--white); line-height: 1; }
.hero__stat span { font-size: var(--fs-small); color: rgba(255,255,255,.75); }

@media (max-width: 640px) {
  .hero { min-height: 480px; }
  .hero__stats { gap: 24px; }
}

/* USP block (4 колонки) */
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.usp__item { background: var(--sand); border: 1px solid var(--cloud); border-radius: var(--radius); padding: 28px; transition: var(--transition); }
.usp__item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.usp__icon { width: 52px; height: 52px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; background: var(--navy); border-radius: var(--radius); }
.usp__icon img { width: 28px; height: 28px; filter: invert(1); }
.usp__item h3 { font-size: 17px; margin-bottom: 10px; }
.usp__item p { font-size: var(--fs-small); color: var(--taupe); }

@media (max-width: 960px) { .usp__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .usp__grid { grid-template-columns: 1fr; } }

/* Section title */
.sec-head { margin-bottom: 40px; max-width: 720px; }
.sec-head .sec-head__label { color: var(--copper); text-transform: uppercase; letter-spacing: 2px; font-size: var(--fs-micro); font-weight: 700; margin-bottom: 12px; display: block; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p { color: var(--taupe); }

/* Portfolio (примеры оформления) */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery__item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; background: var(--cloud); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(26,26,26,.8)); color: var(--white); font-size: var(--fs-small); font-family: var(--font-serif); }

@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* Clients logos */
.clients { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px; }
.clients img { height: 44px; width: auto; opacity: .7; filter: grayscale(1); transition: var(--transition); }
.clients img:hover { opacity: 1; filter: none; }
.clients--dark img { filter: grayscale(1) brightness(2); }
.clients--dark img:hover { filter: none; }

/* Buttons: two-column features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { display: flex; gap: 14px; align-items: flex-start; background: var(--sand); border: 1px solid var(--cloud); border-radius: var(--radius); padding: 22px; }
.feature__check { color: var(--copper); font-weight: 800; font-size: 18px; line-height: 1; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { font-size: var(--fs-small); color: var(--taupe); }

/* Tabs (Концепты HORECA) */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tab-btn { padding: 10px 22px; border: 1px solid var(--cloud); border-radius: 30px; background: var(--sand); cursor: pointer; font-size: var(--fs-small); color: var(--graphite); transition: var(--transition); }
.tab-btn:hover { border-color: var(--copper); color: var(--copper); }
.tab-btn.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* Cards (catalog) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--sand); border: 1px solid var(--cloud); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--cloud); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px; }
.card__body h3 { font-size: 18px; margin-bottom: 8px; }
.card__body p { font-size: var(--fs-small); color: var(--taupe); margin-bottom: 16px; }
.card__link { font-weight: 600; font-family: var(--font-serif); }

@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Forms */
.form { background: var(--white); border: 1px solid var(--cloud); border-radius: var(--radius); padding: 32px; }
.form__row { margin-bottom: 18px; }
.form label { display: block; font-size: var(--fs-small); font-weight: 600; margin-bottom: 6px; color: var(--graphite); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--cloud); border-radius: var(--radius); font-family: var(--font-sans); font-size: var(--fs-body); background: var(--sand); transition: var(--transition); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--copper); background: var(--white); }
.form__note { font-size: var(--fs-micro); color: var(--taupe); margin-top: 12px; }
.form__note a { color: var(--navy); text-decoration: underline; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 30px; }
.cta .hero__actions { justify-content: center; }

/* ============================================================
   FOOTER — точная копия подвала текущего сайта (t396 #623555312)
   bg #242d39 / #111111, шрифт Tinos, колонки РАЗДЕЛЫ/ИНФОРМАЦИЯ
   Links: Главная, Интернет-магазин, Конструктор, Блог, Вопросы и
   ответы; О компании, Контакты, Реквизиты, Доставка и самовывоз,
   Оформление заказа, Способы оплаты, Отгрузка товара, Возврат товара;
   Политика конфиденциальности, Договор оферты, Карта сайта.
   Контакты: +7-861-290-1338, zakaz@rhone.ru.
   ============================================================ */
.footer { background: #242D39; color: #fff; padding: 60px 0 0; font-size: 14px; }
.footer a { color: #fff; }
.footer a:hover { color: var(--copper); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__col h4 { font-family: var(--font-serif); font-size: 16px; color: #aaa; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { display: inline-block; color: #fff; font-size: 14px; line-height: 1.6; }
.footer__col a:hover { color: var(--copper); }
.footer__logo-col { display: flex; flex-direction: column; gap: 12px; }
.footer__logo { font-family: var(--font-serif); font-size: 24px; letter-spacing: 2px; color: #fff; }
.footer__logo img { height: 50px; width: auto; }
.footer__contacts li { font-size: 14px; }
.footer__contacts .footer__phone { font-family: var(--font-serif); font-size: 18px; font-weight: 700; }
.footer__socials { display: flex; gap: 10px; margin-top: 8px; }
.footer__socials a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer__socials a:hover { border-color: var(--copper); }
.footer__socials img { width: 18px; height: 18px; filter: invert(1); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; color: rgba(255,255,255,.55); font-size: 13px; }
.footer__legal { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__legal a { color: rgba(255,255,255,.75); }
.footer__legal a:hover { color: var(--copper); }

@media (max-width: 960px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__cols { grid-template-columns: 1fr; } }

/* ============================================================
   VNUTRENNIE STRANITSY
   ============================================================ */

/* Page hero */
.page-hero { background: var(--navy); color: var(--ivory); padding: 72px 0; text-align: center; }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 14px; }
.page-hero p { max-width: 640px; margin: 0 auto; color: rgba(255,255,255,.85); font-size: 17px; }

/* Generic grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid, .grid--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

/* Card media/price (catalog uses .card + .card__img) */
.card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--cloud); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__price { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }

/* Section tint block */
.section--tint { background: var(--sand); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about__text h2 { font-size: clamp(24px, 3vw, 38px); margin-bottom: 18px; }
.about__text p { margin-bottom: 14px; color: var(--taupe); }
.about__facts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.about__facts li { background: var(--sand); border: 1px solid var(--cloud); border-radius: var(--radius); padding: 18px 12px; text-align: center; }
.about__facts strong { display: block; font-family: var(--font-serif); font-size: 30px; color: var(--navy); line-height: 1.1; }
.about__facts span { font-size: var(--fs-micro); color: var(--taupe); }
.about__img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .about__facts { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact__card { background: var(--sand); border: 1px solid var(--cloud); border-radius: var(--radius); padding: 28px; }
.contact__title { font-family: var(--font-serif); color: var(--copper); text-transform: uppercase; letter-spacing: 2px; font-size: 14px; margin-bottom: 18px; }
.contact__card p { margin-bottom: 14px; color: var(--taupe); font-size: var(--fs-small); }
.contact__card strong { color: var(--graphite); display: block; margin-bottom: 4px; }
.contact__card a { color: var(--navy); font-weight: 600; }
.contact__card a:hover { color: var(--copper); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

/* Calc */
.calc { max-width: 760px; }
.calc__controls { background: var(--sand); border: 1px solid var(--cloud); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; align-items: end; }
.calc__table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.calc__table th, .calc__table td { padding: 12px 14px; border-bottom: 1px solid var(--cloud); text-align: left; font-size: var(--fs-small); }
.calc__table th { background: var(--navy); color: var(--white); font-family: var(--font-serif); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.calc__table td { color: var(--graphite); }
.calc__del { background: none; border: 0; cursor: pointer; color: var(--copper); font-size: 15px; }
.calc__result { display: flex; gap: 40px; justify-content: flex-end; margin-top: 20px; background: var(--navy); color: var(--white); padding: 20px 24px; border-radius: var(--radius); flex-wrap: wrap; }
.calc__result span { color: rgba(255,255,255,.75); font-size: var(--fs-small); }
.calc__result strong { font-family: var(--font-serif); font-size: 24px; }
.form__row--inline { display: flex; flex-direction: column; }
@media (max-width: 720px) { .calc__controls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .calc__controls { grid-template-columns: 1fr; } }

/* Masonry-ish gallery for portfolio page */
.gallery--masonry { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .gallery--masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery--masonry { grid-template-columns: 1fr; } }

/* ============================================================
   AI-ассистент (widget.js -> /chat.php)
   ============================================================ */
.widget-btn, .t-clear { display: none; }

.rhone-widget { position: fixed; right: 24px; bottom: 24px; z-index: 200; font-family: var(--font-sans); }
.rhone-widget__fab {
  display: flex; align-items: center; gap: 10px;
  width: auto; height: 56px; padding: 0 22px 0 14px;
  background: var(--navy); color: var(--white); border: 0; border-radius: 30px;
  cursor: pointer; box-shadow: var(--shadow); transition: var(--transition); font-size: 14px;
}
.rhone-widget__fab:hover { background: var(--navy-soft); transform: translateY(-2px); }
.rhone-widget__fab-icon { font-size: 20px; }
@media (max-width: 480px) { .rhone-widget__fab-hint { display: none; } .rhone-widget__fab { padding: 0 18px; } }

.rhone-widget__panel {
  position: absolute; right: 0; bottom: 70px;
  width: 360px; max-width: calc(100vw - 40px); height: 470px;
  background: var(--white); border: 1px solid var(--cloud); border-radius: 12px;
  box-shadow: 0 20px 50px rgba(20,26,35,.25); overflow: hidden;
  display: flex; flex-direction: column; opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: opacity var(--transition), transform var(--transition);
}
.rhone-widget.is-open .rhone-widget__panel { opacity: 1; pointer-events: auto; transform: none; }

.rhone-widget__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; background: var(--navy); color: var(--white);
  font-family: var(--font-serif); font-size: 16px; letter-spacing: .5px;
}
.rhone-widget__close { cursor: pointer; color: rgba(255,255,255,.85); font-size: 18px; line-height: 1; background: none; border: 0; }
.rhone-widget__close:hover { color: var(--copper); }

.rhone-widget__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.rhone-widget__msg { max-width: 82%; padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--graphite); word-wrap: break-word; }
.rhone-widget__msg--bot { align-self: flex-start; background: var(--sand); border: 1px solid var(--cloud); }
.rhone-widget__msg--user { align-self: flex-end; background: var(--navy); color: var(--white); }

.rhone-widget__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--cloud); background: var(--white); }
.rhone-widget__input { flex: 1; padding: 11px 13px; border: 1px solid var(--cloud); border-radius: 8px; font-family: var(--font-sans); font-size: 14px; background: var(--sand); }
.rhone-widget__input:focus { outline: none; border-color: var(--copper); background: var(--white); }
.rhone-widget__send { padding: 11px 16px; background: var(--copper); color: var(--white); border: 0; border-radius: 8px; cursor: pointer; font-weight: 600; transition: var(--transition); }
.rhone-widget__send:hover { background: var(--copper-dark); }
.rhone-widget__send:disabled { opacity: .6; cursor: default; }
.calc__submit textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
}
.calc__submit {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
}
.calc__buttons {
  margin-bottom: 16px;
}
